MCPcopy Index your code
hub / github.com/codeaashu/claude-code / createFileStateCacheWithSizeLimit

Function createFileStateCacheWithSizeLimit

src/utils/fileStateCache.ts:101–106  ·  view source on GitHub ↗
(
  maxEntries: number,
  maxSizeBytes: number = DEFAULT_MAX_CACHE_SIZE_BYTES,
)

Source from the content-addressed store, hash-verified

99 * for large text files, notebooks, and other editable content.
100 */
101export function createFileStateCacheWithSizeLimit(
102 maxEntries: number,
103 maxSizeBytes: number = DEFAULT_MAX_CACHE_SIZE_BYTES,
104): FileStateCache {
105 return new FileStateCache(maxEntries, maxSizeBytes)
106}
107
108// Helper function to convert cache to object (used by compact.ts)
109export function cacheToObject(

Callers 6

runAgentFunction · 0.85
cloneFileStateCacheFunction · 0.85
REPLFunction · 0.85
runHeadlessStreamingFunction · 0.85
startMCPServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected