MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / cloneFileStateCache

Function cloneFileStateCache

source code/utils/fileStateCache.ts:124–128  ·  view source on GitHub ↗
(cache: FileStateCache)

Source from the content-addressed store, hash-verified

122// Helper function to clone a FileStateCache
123// Preserves size limit configuration from the source cache
124export function cloneFileStateCache(cache: FileStateCache): FileStateCache {
125 const cloned = createFileStateCacheWithSizeLimit(cache.max, cache.maxSize)
126 cloned.load(cache.dump())
127 return cloned
128}
129
130// Merge two file state caches, with more recent entries (by timestamp) overriding older ones
131export function mergeFileStateCaches(

Callers 6

askFunction · 0.85
runAgentFunction · 0.85
mergeFileStateCachesFunction · 0.85
createSubagentContextFunction · 0.85
runInProcessTeammateFunction · 0.85
updateMagicDocFunction · 0.85

Calls 3

loadMethod · 0.80
dumpMethod · 0.80

Tested by

no test coverage detected