MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / deleteSessionCache

Function deleteSessionCache

packages/node-runtime/src/cache/session-cache.ts:80–87  ·  view source on GitHub ↗
(sessionId: string, cacheDir: string)

Source from the content-addressed store, hash-verified

78}
79
80export function deleteSessionCache(sessionId: string, cacheDir: string): void {
81 const cachePath = getCachePath(sessionId, cacheDir)
82 try {
83 if (fs.existsSync(cachePath)) fs.unlinkSync(cachePath)
84 } catch {
85 // Ignore
86 }
87}
88
89// ==================== Overview cache (aggregate stats) ====================
90

Callers 6

deleteSessionFunction · 0.90
postImportHookFunction · 0.90
postImportHookFunction · 0.90

Calls 1

getCachePathFunction · 0.85

Tested by

no test coverage detected