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

Function bumpGeneration

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

Source from the content-addressed store, hash-verified

176// Per-key generation to prevent "resurrecting" deleted entries from late in-flight responses
177const generations = new Map<string, number>()
178function bumpGeneration(key: string) {
179 generations.set(key, (generations.get(key) ?? 0) + 1)
180}
181function getGeneration(key: string) {
182 return generations.get(key) ?? 0
183}

Callers 1

deleteCacheEntryFunction · 0.85

Calls 2

setMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected