MCPcopy Create free account
hub / github.com/anus-dev/ANUS / constructor

Method constructor

packages/core/src/utils/LruCache.ts:12–15  ·  view source on GitHub ↗
(maxSize: number)

Source from the content-addressed store, hash-verified

10 private maxSize: number;
11
12 constructor(maxSize: number) {
13 this.cache = new Map<K, V>();
14 this.maxSize = maxSize;
15 }
16
17 get(key: K): V | undefined {
18 const value = this.cache.get(key);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected