Excludes all query parameters except those provided from the cache key. We also refer to
this as "whitelisting" query parameters. We recommend using this method over excludeQueryParameters
as it's difficult to know all of the query parameters your application might receive and unexpected
query parameters can lead to significantly lower cache hit rates.
A self-reference, suitable for chaining.
Rest
...names: string[]The names of the query parameters to whitelist
Excludes the provided query parameters from the cache key. All other parameters will still be part of the cache key. We also refer to this as "blacklisting" query parameters.
A self-reference, suitable for chaining.
Rest
...names: string[]The names of the query parameters to blacklist
Generated using TypeDoc
Allows you to split or normalize the cache space for a given route. Common use cases include:
Example