2
0
mirror of https://github.com/cderche/greenlock-storage-s3 synced 2025-12-25 21:48:40 +00:00
2019-05-08 12:19:12 +01:00

17 lines
422 B
TypeScript

export declare class LRUCache<T> {
private headerNode;
private tailNode;
private nodeMap;
private size;
private readonly sizeLimit;
constructor(size: number);
readonly length: number;
private prependToList;
private removeFromTail;
private detachFromList;
get(key: string): T | undefined;
remove(key: string): void;
put(key: string, value: T): void;
empty(): void;
}