MCPcopy
hub / github.com/claude-code-best/claude-code / cloneFileStateCache

Function cloneFileStateCache

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

Source from the content-addressed store, hash-verified

131// Helper function to clone a FileStateCache
132// Preserves size limit configuration from the source cache
133export function cloneFileStateCache(cache: FileStateCache): FileStateCache {
134 const cloned = createFileStateCacheWithSizeLimit(cache.max, cache.maxSize)
135 cloned.load(cache.dump())
136 return cloned
137}
138
139// Merge two file state caches, with more recent entries (by timestamp) overriding older ones
140export function mergeFileStateCaches(

Callers 6

runAgentFunction · 0.85
askFunction · 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