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

Method dropReadCaches

src/index.ts:2277–2279  ·  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

2275 * looks like it moved.
2276 */
2277 dropReadCaches(): void {
2278 this.queries.clearCache();
2279 }
2280
2281 /**
2282 * 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