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

Function getCachePath

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

Source from the content-addressed store, hash-verified

22type CacheFile = Record<string, CacheEntry>
23
24export function getCachePath(sessionId: string, cacheDir: string): string {
25 return path.join(cacheDir, `${sessionId}.cache.json`)
26}
27
28function readCacheFile(cachePath: string): CacheFile | null {
29 try {

Callers 5

getCacheFunction · 0.85
setCacheFunction · 0.85
invalidateCacheFunction · 0.85
deleteSessionCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected