All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.lib.core.LRU.d.ts Maven / Gradle / Ivy

export declare class Entry {
    value: T;
    key: string | number;
    next: Entry;
    prev: Entry;
    constructor(val: T);
}
export declare class LinkedList {
    head: Entry;
    tail: Entry;
    private _len;
    insert(val: T): Entry;
    insertEntry(entry: Entry): void;
    remove(entry: Entry): void;
    len(): number;
    clear(): void;
}
export default class LRU {
    private _list;
    private _maxSize;
    private _lastRemovedEntry;
    private _map;
    constructor(maxSize: number);
    put(key: string | number, value: T): T;
    get(key: string | number): T;
    clear(): void;
    len(): number;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy