blob: 8fece23740a59c40c368b20d9ceeefd1679025c6 (
plain) (
tree)
|
|
declare module 'lru-cache' {
class LRUCache<K, V> {
constructor(config: { max: number, dispose: (k: K, v: V) => any});
get length(): number;
has(key: K): boolean;
get(key: K): V;
set(key: K, val: V);
dump(): {k: K, v: V, e: number}[];
load(arr: {k: K, v: V, e: number}[]);
}
export = LRUCache;
}
|