Skip to main content
zerotal

Documentation


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

readonly key: string

Defined in: cache/src/events.ts:29


reason

readonly reason: "manual" | "ttl" | "capacity"

Defined in: cache/src/events.ts:30