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

Function evictContent

packages/app/src/context/file.tsx:95–107  ·  view source on GitHub ↗
(keep?: Set<string>)

Source from the content-addressed store, hash-verified

93 })
94
95 const evictContent = (keep?: Set<string>) => {
96 evictContentLru(keep, (target) => {
97 if (!store.file[target]) return
98 setStore(
99 "file",
100 target,
101 produce((draft) => {
102 draft.content = undefined
103 draft.loaded = false
104 }),
105 )
106 })
107 }
108
109 createEffect(() => {
110 scope()

Callers 1

loadFunction · 0.85

Calls 2

evictContentLruFunction · 0.90
setStoreFunction · 0.85

Tested by

no test coverage detected