MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / clear

Method clear

packages/node-runtime/src/services/merge-cache.ts:77–82  ·  view source on GitHub ↗

Clear all entries and delete their temp DB files.

()

Source from the content-addressed store, hash-verified

75
76 /** Clear all entries and delete their temp DB files. */
77 clear(): void {
78 for (const entry of this.cache.values()) {
79 deleteTempDatabase(entry.tempDbPath)
80 }
81 this.cache.clear()
82 }
83
84 /** Cleanup orphan temp DBs from previous runs. */
85 cleanupOrphans(): void {

Callers

nothing calls this directly

Calls 2

deleteTempDatabaseFunction · 0.90
clearMethod · 0.65

Tested by

no test coverage detected