ag-charts-community
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
14 lines (13 loc) • 346 B
TypeScript
/**
* Implements a most-recently-used caching strategy with a similar
* interface to Map.
*/
export declare class LRUCache<K, V> {
private readonly maxCacheSize;
private readonly store;
constructor(maxCacheSize?: number);
get(key: K): V | undefined;
has(key: K): boolean;
set(key: K, value: V): V;
clear(): void;
}