API Docs for: 5.4.0-alpha.73+55654008
Show:

<Interface> CacheHandler Class

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).

Item Index

Methods

Methods

request

(
  • context
  • next
)
public

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

Parameters:

  • context Object
  • next Object