transitory
Version:
In-memory cache with high hit rates via LFU eviction. Supports time-based expiration, automatic loading and metrics.
11 lines (10 loc) • 321 B
TypeScript
import { KeyType } from '../cache/KeyType';
import { CacheBuilder } from './CacheBuilder';
export { CacheBuilder, LoadingCacheBuilder } from './CacheBuilder';
/**
* Create a new cache via a builder.
*
* @returns
* builder of a cache
*/
export declare function newCache<K extends KeyType, V>(): CacheBuilder<K, V>;