MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / cacheToObject

Function cacheToObject

src/utils/fileStateCache.ts:120–124  ·  view source on GitHub ↗
(
  cache: FileStateCache,
)

Source from the content-addressed store, hash-verified

118
119// Helper function to convert cache to object (used by compact.ts)
120export function cacheToObject(
121 cache: FileStateCache,
122): Record<string, FileState> {
123 return Object.fromEntries(cache.entries())
124}
125
126// Helper function to get all keys from cache (used by several components)
127export function cacheKeys(cache: FileStateCache): string[] {

Callers 2

compactConversationFunction · 0.85

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected