MCPcopy Create free account
hub / github.com/anomalyco/opencode / cacheDelete

Function cacheDelete

packages/app/src/utils/persist.ts:39–44  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

37const cacheTotal = { bytes: 0 }
38
39function cacheDelete(key: string) {
40 const entry = cache.get(key)
41 if (!entry) return
42 cacheTotal.bytes -= entry.bytes
43 cache.delete(key)
44}
45
46function cachePrune() {
47 for (;;) {

Callers 6

cachePruneFunction · 0.85
cacheSetFunction · 0.85
evictFunction · 0.85
writeFunction · 0.85
localStorageWithPrefixFunction · 0.85
localStorageDirectFunction · 0.85

Calls 2

getMethod · 0.65
deleteMethod · 0.45

Tested by

no test coverage detected