MCPcopy Create free account
hub / github.com/modelcontextprotocol/ext-apps / deleteCacheEntry

Function deleteCacheEntry

examples/pdf-server/server.ts:715–723  ·  view source on GitHub ↗

Delete a cache entry and clear its timers

(url: string)

Source from the content-addressed store, hash-verified

713
714 /** Delete a cache entry and clear its timers */
715 function deleteCacheEntry(url: string): void {
716 const entry = cache.get(url);
717 if (entry) {
718 clearTimeout(entry.inactivityTimer);
719 clearTimeout(entry.maxLifetimeTimer);
720 totalBytes -= entry.data.length;
721 cache.delete(url);
722 }
723 }
724
725 /** Get cached data and refresh the inactivity timer */
726 function getCacheEntry(url: string): Uint8Array | undefined {

Callers 3

getCacheEntryFunction · 0.85
setCacheEntryFunction · 0.85
createPdfCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…