MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / dropReadCaches

Method dropReadCaches

src/index.ts:2255–2257  ·  view source on GitHub ↗

* Forget everything held in memory about rows another process may have * changed. * * The query layer keeps an LRU of nodes by id, invalidated by writes made * through THIS instance — which is exactly right for a process that owns the * index, and wrong for one that is only reading a

()

Source from the content-addressed store, hash-verified

2253 * looks like it moved.
2254 */
2255 dropReadCaches(): void {
2256 this.queries.clearCache();
2257 }
2258
2259 /**
2260 * Completeness of the last full index run. `'complete'` is the only good

Callers 1

acquireMethod · 0.80

Calls 1

clearCacheMethod · 0.80

Tested by

no test coverage detected