(max: number)
| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected