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

Method delete

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

Remove a single entry and its temp DB file.

(handle: string)

Source from the content-addressed store, hash-verified

66
67 /** Remove a single entry and its temp DB file. */
68 delete(handle: string): void {
69 const entry = this.cache.get(handle)
70 if (entry) {
71 deleteTempDatabase(entry.tempDbPath)
72 this.cache.delete(handle)
73 }
74 }
75
76 /** Clear all entries and delete their temp DB files. */
77 clear(): void {

Callers

nothing calls this directly

Calls 3

deleteTempDatabaseFunction · 0.90
getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected