Documentation / @zerotal/cache / index / CacheEvicted
Class: CacheEvicted
Defined in: cache/src/events.ts:27
Emitted when a cache entry is removed by the driver — reason distinguishes
TTL expiry, capacity eviction, and manual removal.
Constructors
Constructor
new CacheEvicted(
key,reason):CacheEvicted
Defined in: cache/src/events.ts:28
Parameters
key
string
reason
"manual" | "ttl" | "capacity"
Returns
CacheEvicted
Properties
key
readonlykey:string
Defined in: cache/src/events.ts:29
reason
readonlyreason:"manual"|"ttl"|"capacity"
Defined in: cache/src/events.ts:30