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

Function invalidateSessionListCache

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

Source from the content-addressed store, hash-verified

95const SESSION_LIST_CACHE_TTL_MS = 30_000;
96
97export function invalidateSessionListCache(): void {
98 globalThis.__piSessionListGeneration = (globalThis.__piSessionListGeneration ?? 0) + 1;
99 globalThis.__piSessionListCache = undefined;
100}
101
102function getPathCache(): Map<string, string> {
103 if (!globalThis.__piSessionPathCache) globalThis.__piSessionPathCache = new Map();

Callers 6

startMethod · 0.90
sendMethod · 0.90
PATCHFunction · 0.90
DELETEFunction · 0.90
POSTFunction · 0.90
POSTFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected