MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / constructor

Method constructor

src/resolution/lru-cache.ts:32–37  ·  view source on GitHub ↗
(max: number)

Source from the content-addressed store, hash-verified

30 private newest: LRUEntry<K, V> | null = null;
31
32 constructor(max: number) {
33 if (!Number.isFinite(max) || max <= 0) {
34 throw new Error(`LRUCache max must be a positive finite number, got ${max}`);
35 }
36 this.max = Math.floor(max);
37 }
38
39 get size(): number {
40 return this.store.size;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected