UNPKG

raiden-ts

Version:

Raiden Light Client Typescript/Javascript SDK

12 lines (11 loc) 249 B
/** * Simple Map-based LRU cache * * @param max - Maximum size of cache */ export declare class LruCache<K, V> extends Map<K, V> { max: number; constructor(max: number); get(key: K): V | undefined; set(key: K, value: V): this; }