Defined in: packages/cache/src/cache.ts:36
One thing a cache did, reported to CacheOptions.trace in the order it happened.
hitandmiss: agetfound the key, or did not (an expired key reportsexpirefirst, thenmiss).peekandhasreport neither.insertandupdate: asetstored a key the cache did not hold, or replaced one it did. It follows theevictandexpireevents the samesetcaused.evict: the policy chose the key to make room; it is one of the entriessetreturns.delete:deleteremoved an unexpired key.expire: an entry was dropped because it had expired, by any member that found it, includingdeleteExpiredand an eviction that reached it.
clear reports nothing.
Type Parameters
Section titled “Type Parameters”K
Properties
Section titled “Properties”
readonlykind:"delete"|"hit"|"miss"|"insert"|"update"|"evict"|"expire"
Defined in: packages/cache/src/cache.ts:38
What the cache did.
readonlykey:K
Defined in: packages/cache/src/cache.ts:40
The key it did it to.