Class <Interface> CacheHandler

public

The CacheHandler is identical to other handlers ecxept that it is allowed to return a value synchronously. This is useful for features like reducing microtask queueing when de-duping.

A RequestManager may only have one CacheHandler, registered via manager.useCache(CacheHandler).

Show:

context
next

Method to implement to handle requests. Receives the request context and a nextFn to call to pass-along the request to other handlers.