MCPcopy Create free account
hub / github.com/agegr/pi-web / getPathToIdCache

Function getPathToIdCache

lib/session-reader.ts:107–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107function getPathToIdCache(): Map<string, string> {
108 if (!globalThis.__piPathToSessionIdCache) globalThis.__piPathToSessionIdCache = new Map();
109 return globalThis.__piPathToSessionIdCache;
110}
111
112export async function resolveSessionPath(sessionId: string): Promise<string | null> {
113 const cached = getPathCache().get(sessionId);

Callers 3

resolveSessionIdByPathFunction · 0.85
cacheSessionPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected