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

Function getProjectCache

lib/worktree.ts:42–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40const PROJECT_CACHE_TTL_MS = 60_000;
41
42function getProjectCache(): Map<string, { info: ProjectInfo; expiresAt: number }> {
43 if (!globalThis.__piProjectCache) globalThis.__piProjectCache = new Map();
44 return globalThis.__piProjectCache;
45}
46
47export function invalidateProjectCache(): void {
48 globalThis.__piProjectCache?.clear();

Callers 1

resolveProjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected