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

Method recordHits

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

* Records cache hits. This should be called when a cache request returns a cached value. * * @param count - The number of hits to record

(count: number)

Source from the content-addressed store, hash-verified

215 * @param count - The number of hits to record
216 */
217 recordHits(count: number): void;
218
219 /**
220 * Records cache misses. This should be called when a cache request returns a value that was not

Callers 2

recordHitsMethod · 0.65
handleCacheMethod · 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