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