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

Function reset

packages/app/src/context/file/content-cache.ts:39–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39function reset() {
40 lru.clear()
41 total = 0
42}
43
44export function evictContentLru(keep: Set<string> | undefined, evict: (path: string) => void) {
45 const set = keep ?? new Set<string>()

Callers 1

resetFileContentLruFunction · 0.70

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected