Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode
/ touch
Function
touch
packages/app/src/utils/scoped-cache.ts:35–39 ·
view source on GitHub ↗
(key: string, entry: Entry<T>)
Source
from the content-addressed store, hash-verified
33
}
34
35
const
touch = (key: string, entry: Entry<T>) => {
36
entry.touchedAt = now()
37
store.delete(key)
38
store.set(key, entry)
39
}
40
41
const
prune = () => {
42
if
(options.maxEntries === undefined)
return
Callers
1
get
Function · 0.70
Calls
2
delete
Method · 0.45
set
Method · 0.45
Tested by
no test coverage detected