UNPKG

transitory

Version:

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

9 lines (8 loc) 242 B
import { KeyType } from './KeyType'; import { RemovalListener } from './RemovalListener'; /** * Common options for caches. */ export interface CommonCacheOptions<K extends KeyType, V> { removalListener?: RemovalListener<K, V> | null; }