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

Method requestCount

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

* Returns the total number of times cache lookup methods have returned * either a cached or uncached value. * * @returns Total number of requests (hits + misses)

()

Source from the content-addressed store, hash-verified

101 * @returns Total number of requests (hits + misses)
102 */
103 requestCount(): number {
104 return this.hitCount + this.missCount;
105 }
106
107 /**
108 * Returns the hit rate of the cache.

Callers 3

hitRateMethod · 0.95
missRateMethod · 0.95
cache.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected