MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / constructor

Method constructor

source code/utils/fileStateCache.ts:35–41  ·  view source on GitHub ↗
(maxEntries: number, maxSizeBytes: number)

Source from the content-addressed store, hash-verified

33 private cache: LRUCache<string, FileState>
34
35 constructor(maxEntries: number, maxSizeBytes: number) {
36 this.cache = new LRUCache<string, FileState>({
37 max: maxEntries,
38 maxSize: maxSizeBytes,
39 sizeCalculation: value => Math.max(1, Buffer.byteLength(value.content)),
40 })
41 }
42
43 get(key: string): FileState | undefined {
44 return this.cache.get(normalize(key))

Callers

nothing calls this directly

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected