(sessionId: string, slug: string)
| 1444 | } |
| 1445 | |
| 1446 | export function setPlanSlugCacheEntry(sessionId: string, slug: string): void { |
| 1447 | if (STATE.planSlugCache.size >= 50) { |
| 1448 | const firstKey = STATE.planSlugCache.keys().next().value |
| 1449 | if (firstKey !== undefined) { |
| 1450 | STATE.planSlugCache.delete(firstKey) |
| 1451 | } |
| 1452 | } |
| 1453 | STATE.planSlugCache.set(sessionId, slug) |
| 1454 | } |
| 1455 | |
| 1456 | export function getSessionCreatedTeams(): Set<string> { |
| 1457 | return STATE.sessionCreatedTeams |
no test coverage detected