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

Function cacheGet

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

Source from the content-addressed store, hash-verified

68}
69
70function cacheGet(key: string) {
71 const entry = cache.get(key)
72 if (!entry) return
73 cache.delete(key)
74 cache.set(key, entry)
75 return entry.value
76}
77
78function fallbackDisabled(scope: string) {
79 return fallback.get(scope) === true

Callers 2

localStorageWithPrefixFunction · 0.85
localStorageDirectFunction · 0.85

Calls 3

getMethod · 0.65
deleteMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected