@thi.ng/cache
Version:
In-memory cache implementations with ES6 Map-like API and different eviction strategies
10 lines • 448 B
TypeScript
import type { Maybe } from "@thi.ng/api";
import type { ConsCell } from "@thi.ng/dcons";
import type { CacheEntry } from "./api.js";
import { LRUCache } from "./lru.js";
export declare class MRUCache<K, V> extends LRUCache<K, V> {
empty(): MRUCache<K, V>;
protected resetEntry(e: ConsCell<CacheEntry<K, V>>): V;
protected doSetEntry(e: Maybe<ConsCell<CacheEntry<K, V>>>, k: K, v: V, s: number): void;
}
//# sourceMappingURL=mru.d.ts.map