OptionalbypassBypass function — when true, skip caching entirely for this
request and pass through to the handler.
OptionalcacheableHTTP status codes eligible for caching. Defaults to [200].
OptionalkeyCustom cache key generator. Defaults to
${request.method}:${request.url}.
The tenant discriminator segment is composed around this key too, so a tenant-aware application stores one entry per tenant regardless.
OptionalstoreCapability token for the cache store to use. Defaults to
CAPABILITIES.CACHE.
OptionalttlPer-route TTL override in seconds.
OptionalvaryPer-request discriminator values appended to the cache key after the tenant segment. Each returned string is length-prefixed and joined in order, so two requests differing in any value never share an entry. Omitted leaves the key unchanged.
Options for the transparent response-caching middleware.
Example
Since
0.1.0