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

Function deleteCacheEntry

cli/src/hooks/use-activity-query.ts:196–205  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

194}
195
196function deleteCacheEntry(key: string): void {
197 bumpGeneration(key)
198 clearRetryState(key)
199 inFlight.delete(key)
200 cache.fetchingKeys.delete(key)
201 cache.entries.delete(key)
202 cache.refCounts.delete(key)
203 snapshotMemo.delete(key)
204 notifyKeyListeners(key)
205}
206export type UseActivityQueryOptions<T> = {
207 /** Unique key for caching the query */
208 queryKey: readonly unknown[]

Callers 2

useActivityQueryFunction · 0.85
removeActivityQueryFunction · 0.85

Calls 4

bumpGenerationFunction · 0.85
clearRetryStateFunction · 0.85
notifyKeyListenersFunction · 0.85
deleteMethod · 0.80

Tested by

no test coverage detected