Options
milliseconds
the response will be stored for this amount of time before being deleted from the cache.
(url, opts) => boolean
If skip returns true, then the request is performed even if present in the cache.
(url, opts) => string
Returns a key that is used to identify the request.
Clears the cache if true.
(url, opts) => string | RegExp | null
Removes url(s) matching the string/RegExp from the cache.
response => boolean
If false then the response will not be added to the cache.
string
If set, a Response returned from the cache whill be flagged with a property name equal to this option.
Optional
Generated using TypeDoc
Throttling cache middleware
A throttling cache which stores and serves server responses for a certain amount of time.
Options
milliseconds
(url, opts) => boolean
(url, opts) => string
(url, opts) => boolean
(url, opts) => string | RegExp | null
response => boolean
string