UNPKG

@m4x1m1l14n/cache

Version:

Lightweight in-memory isomorphic cache implementation with TTL for browser & Node JS written in TypeScript

10 lines (9 loc) 235 B
/** * Represents an entry in the expiration heap */ export interface ExpirationEntry<K> { /** The timestamp when this item expires */ expiration: number; /** The cache key associated with this expiration */ key: K; }