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

Function readFileSyncCached

src/utils/file.ts:349–352  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

347 * This is the preferred method for FileEditTool operations.
348 */
349export function readFileSyncCached(filePath: string): string {
350 const { content } = fileReadCache.readFile(filePath)
351 return content
352}
353
354/**
355 * Writes to a file and flushes the file to disk

Callers 2

normalizeFileEditInputFunction · 0.85

Calls 1

readFileMethod · 0.80

Tested by

no test coverage detected