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

Function setCacheEntry

cli/src/hooks/use-activity-query.ts:99–104  ·  view source on GitHub ↗
(key: string, entry: CacheEntry<T>)

Source from the content-addressed store, hash-verified

97}
98
99function setCacheEntry<T>(key: string, entry: CacheEntry<T>): void {
100 cache.entries.set(key, entry as CacheEntry<unknown>)
101 // bust memo for this key
102 snapshotMemo.delete(key)
103 notifyKeyListeners(key)
104}
105
106function getCacheEntry<T>(key: string): CacheEntry<T> | undefined {
107 return cache.entries.get(key) as CacheEntry<T> | undefined

Callers 5

useActivityQueryFunction · 0.85
invalidateActivityQueryFunction · 0.85
setActivityQueryDataFunction · 0.85
setErrorOnlyCacheEntryFunction · 0.85
simulateFailedFetchFunction · 0.85

Calls 3

notifyKeyListenersFunction · 0.85
setMethod · 0.80
deleteMethod · 0.80

Tested by

no test coverage detected