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

Function cacheToObject

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

Source from the content-addressed store, hash-verified

107
108// Helper function to convert cache to object (used by compact.ts)
109export function cacheToObject(
110 cache: FileStateCache,
111): Record<string, FileState> {
112 return Object.fromEntries(cache.entries())
113}
114
115// Helper function to get all keys from cache (used by several components)
116export function cacheKeys(cache: FileStateCache): string[] {

Callers 2

compactConversationFunction · 0.85

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected