MCPcopy Index your code
hub / github.com/liuup/claude-code-analysis / cloneFileStateCache

Function cloneFileStateCache

src/utils/fileStateCache.ts:122–126  ·  view source on GitHub ↗
(cache: FileStateCache)

Source from the content-addressed store, hash-verified

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