summaryrefslogtreecommitdiff
path: root/node_modules/liquidjs/dist/cache/lru.d.ts
blob: 9532ed14be05433c29930cef2b1fdc15718f8645 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { Cache } from './cache';
export declare class LRU<T> implements Cache<T> {
    limit: number;
    size: number;
    private cache;
    private head;
    private tail;
    constructor(limit: number, size?: number);
    write(key: string, value: T): void;
    read(key: string): T | undefined;
    remove(key: string): void;
    clear(): void;
    private ensureLimit;
}