UNPKG

transitory

Version:

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

10 lines (9 loc) 196 B
/** * Metrics for a cache. Includes information about the number of hits, * misses and the hit ratio. */ export interface Metrics { hits: number; misses: number; readonly hitRate: number; }