MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / resetActivityQueryCache

Function resetActivityQueryCache

cli/src/hooks/use-activity-query.ts:565–581  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

563 * Reset the activity query cache (mainly for testing).
564 */
565export function resetActivityQueryCache(): void {
566 for (const timeoutId of gcTimeouts.values()) clearTimeout(timeoutId)
567 gcTimeouts.clear()
568
569 for (const t of retryTimeouts.values()) clearTimeout(t)
570 retryTimeouts.clear()
571 retryCounts.clear()
572
573 cache.entries.clear()
574 cache.keyListeners.clear()
575 cache.refCounts.clear()
576 cache.fetchingKeys.clear()
577
578 inFlight.clear()
579 snapshotMemo.clear()
580 generations.clear()
581}
582
583/**
584 * Set an error-only cache entry (for testing).

Callers 2

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected