Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
32
function
remove(path: string) {
33
const
prev = lru.get(path)
34
if
(prev === undefined)
return
35
lru.delete(path)
36
total -= prev
37
}
38
39
function
reset() {
40
lru.clear()
Callers
2
evictContentLru
Function · 0.70
removeFileContentBytes
Function · 0.70
Calls
2
get
Method · 0.65
delete
Method · 0.45
Tested by
no test coverage detected