Class <Interface> CacheHandler
public
Defined in:
../request/src/-private/types.ts:209
Module:
@ember-data/request
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)
.
request (context, next) public
Module:
@ember-data/request
Defined in ../packages/request/src/-private/types.ts:221
- 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.