MCPcopy Index your code
hub / github.com/thesysdev/openui / cleanupCacheEntry

Function cleanupCacheEntry

packages/lang-core/src/runtime/queryManager.ts:310–315  ·  view source on GitHub ↗

Remove a cache entry if no query references it.

(cacheKey: string)

Source from the content-addressed store, hash-verified

308
309 /** Remove a cache entry if no query references it. */
310 function cleanupCacheEntry(cacheKey: string) {
311 for (const q of queries.values()) {
312 if (q.cacheKey === cacheKey || q.prevCacheKey === cacheKey) return;
313 }
314 cache.delete(cacheKey);
315 }
316
317 // ── Query evaluation ─────────────────────────────────────────────────────
318

Callers 2

executeFetchFunction · 0.85
evaluateQueriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected