MCPcopy Index your code
hub / github.com/anomalyco/opencode / remove

Function remove

packages/app/src/utils/scoped-cache.ts:53–59  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

51 }
52
53 const remove = (key: string) => {
54 const entry = store.get(key)
55 if (!entry) return
56 store.delete(key)
57 dispose(key, entry)
58 return entry.value
59 }
60
61 const peek = (key: string) => {
62 sweep()

Callers 1

createRefCountMapFunction · 0.70

Calls 3

disposeFunction · 0.70
getMethod · 0.65
deleteMethod · 0.45

Tested by

no test coverage detected