UNPKG

transitory

Version:

In-memory cache with high hit rates via LFU eviction. Supports time-based expiration, automatic loading and metrics.

14 lines (13 loc) 297 B
/** * Node in a double-linked list. */ export declare class CacheNode<K, V> { key: K | null; value: V | null; next: this; previous: this; constructor(key: K | null, value: V | null); remove(): void; appendToTail(head: this): void; moveToTail(head: this): void; }