UNPKG

transitory

Version:

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

12 lines (11 loc) 280 B
/** * Utility for calculating stable hashcodes for keys used in a cache. * * @param obj - * object to hash * @param seed - * seed to hash with * @returns * hash code */ export declare function hashcode(obj: string | number | boolean | null, seed?: number): number;