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

Method delete

packages/client/lib/client/cache.ts:696–702  ·  view source on GitHub ↗
(cacheKey: string)

Source from the content-addressed store, hash-verified

694 }
695
696 delete(cacheKey: string) {
697 const entry = this.#cacheKeyToEntryMap.get(cacheKey);
698 if (entry) {
699 entry.invalidate();
700 this.#cacheKeyToEntryMap.delete(cacheKey);
701 }
702 }
703
704 has(cacheKey: string) {
705 return this.#cacheKeyToEntryMap.has(cacheKey);

Callers 15

handleCacheMethod · 0.95
getMethod · 0.95
invalidateMethod · 0.80
deleteOldestMethod · 0.80
unsubscribeMethod · 0.80
unregisterMethod · 0.80
onAsyncEndMethod · 0.80
onErrorMethod · 0.80
onBatchAsyncEndMethod · 0.80
onBatchErrorMethod · 0.80

Calls 2

invalidateMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected