Type Alias: CacheMiddlewareHandler()
ts
type CacheMiddlewareHandler = (
context: CacheMiddlewareContext,
next: CacheMiddlewareNext,
) => void | Promise<void>;A single cache-middleware handler (chain-of-responsibility; must call next).
Parameters
| Parameter | Type |
|---|---|
context | CacheMiddlewareContext |
next | CacheMiddlewareNext |
Returns
void | Promise<void>