keyFn when using per-component auth so cached results are
partitioned by caller identity.
Implements
Constructors
Constructor
Parameters
ttl?
number = 60_000
_keyFn?
CacheKeyFn
Returns
CachingMiddleware
Properties
ttl
Methods
onRequest()
Type Parameters
T
T
R
R
Parameters
ctx
MiddlewareContext<T>
next
Next<R>
Returns
Promise<R>
Implementation of
Middleware.onRequest