OptionalentryThe calculated size for the item, if sizes are used.
OptionalfetchThe status of a LRUCache#fetch operation. Note that this can change as the underlying fetch() moves through various states.
OptionalfetchThe fetch received an abort signal
OptionalfetchThe abort signal received was ignored, and the fetch was allowed to continue.
OptionalfetchThe OptionsBase.fetchMethod was called
OptionalfetchThe reason for a fetch() rejection. Either the error raised by the OptionsBase.fetchMethod, or the reason for an AbortSignal.
OptionalfetchThe fetchMethod promise was rejected
OptionalfetchThe fetchMethod promise resolved successfully
OptionalfetchThe cached value was updated after a successful call to OptionsBase.fetchMethod
OptionalgetThe status of a LRUCache#get operation.
OptionalhasThe results of a LRUCache#has operation
OptionalmaxA flag indicating that the item was not stored, due to exceeding the OptionsBase.maxEntrySize
OptionalnowThe timestamp used for TTL calculation
OptionaloldThe old value, specified in the case of set:'update' or
set:'replace'
Optionalremainingthe remaining ttl for the item, or undefined if ttls are not used.
OptionalreturnedA fetch or get operation returned a stale value.
OptionalsetThe status of a set() operation.
Optionalstartthe start time for the item, or undefined if ttls are not used.
OptionaltotalThe total calculated size of the cache, if sizes are used.
Optionalttlthe ttl stored for the item, or undefined if ttls are not used.
Occasionally, it may be useful to track the internal behavior of the cache, particularly for logging, debugging, or for behavior within the
fetchMethod. To do this, you can pass astatusobject to the LRUCache#fetch, LRUCache#get, LRUCache#set, LRUCache#memo, and LRUCache#has methods.The
statusoption should be a plain JavaScript object. The following fields will be set on it appropriately, depending on the situation.