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

Function remove

packages/app/src/context/file/content-cache.ts:32–37  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

30}
31
32function remove(path: string) {
33 const prev = lru.get(path)
34 if (prev === undefined) return
35 lru.delete(path)
36 total -= prev
37}
38
39function reset() {
40 lru.clear()

Callers 2

evictContentLruFunction · 0.70
removeFileContentBytesFunction · 0.70

Calls 2

getMethod · 0.65
deleteMethod · 0.45

Tested by

no test coverage detected