MCPcopy
hub / github.com/claude-code-best/claude-code / setPlanSlugCacheEntry

Function setPlanSlugCacheEntry

src/bootstrap/state.ts:1446–1454  ·  view source on GitHub ↗
(sessionId: string, slug: string)

Source from the content-addressed store, hash-verified

1444}
1445
1446export 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
1456export function getSessionCreatedTeams(): Set<string> {
1457 return STATE.sessionCreatedTeams

Callers 2

getPlanSlugFunction · 0.85
setPlanSlugFunction · 0.85

Calls 4

nextMethod · 0.80
setMethod · 0.80
keysMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected