mem100x
Version:
⚡ The FASTEST MCP memory server ever built - 66k+ entities/sec with intelligent context detection
28 lines • 691 B
TypeScript
/**
* High-Performance LRU Cache with O(1) operations
* Uses doubly-linked list and hash map for optimal performance
*/
export declare class LRUCache<K, V> {
private readonly maxSize;
private readonly cache;
private head;
private tail;
private size;
private hits;
private misses;
constructor(maxSize?: number);
get(key: K): V | undefined;
set(key: K, value: V): void;
private moveToFront;
private evictLRU;
has(key: K): boolean;
delete(key: K): boolean;
clear(): void;
getStats(): {
hits: number;
misses: number;
hitRate: number;
size: number;
};
}
//# sourceMappingURL=lru-cache.d.ts.map