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

Method dropReadCaches

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

2202 * looks like it moved.
2203 */
2204 dropReadCaches(): void {
2205 this.queries.clearCache();
2206 }
2207
2208 /**
2209 * 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