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) 240 B
/** * Expirable object. */ export interface Expirable<V> { /** * Get the current value. */ readonly value: V | null; /** * Get if this expirable object is considered expired. */ isExpired(): boolean; }