Skip to content

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

ParameterType
contextCacheMiddlewareContext
nextCacheMiddlewareNext

Returns

void | Promise<void>