MCPcopy
hub / github.com/redis/node-redis / recordEvictions

Method recordEvictions

packages/client/lib/client/cache.ts:250–250  ·  view source on GitHub ↗

* Records the eviction of an entry from the cache. This should only be called when an entry is * evicted due to the cache's eviction strategy, and not as a result of manual invalidations. * * @param count - The number of evictions to record

(count: number)

Source from the content-addressed store, hash-verified

248 * @param count - The number of evictions to record
249 */
250 recordEvictions(count: number): void;
251
252 /**
253 * Returns a snapshot of this counter's values. Note that this may be an inconsistent view, as it

Callers 4

recordEvictionsMethod · 0.65
clearMethod · 0.65
getMethod · 0.65
setMethod · 0.65

Implementers 2

DisabledStatsCounterpackages/client/lib/client/cache.ts
DefaultStatsCounterpackages/client/lib/client/cache.ts

Calls

no outgoing calls

Tested by

no test coverage detected