UNPKG

@connected/react

Version:

The hassle free way to call your server-side code

16 lines 517 B
interface EventListener<T> { (action: string, key?: string, value?: T): void; } export default class Lru<T> { private readonly eventListener?; private readonly lru; constructor(initialData?: Record<string, T>, maxSize?: number, eventListener?: EventListener<T> | undefined); has(key: string): boolean; get(key: string): T | undefined; set(key: string, value: T): this; clear(): this; delete(key: string): this; isEmpty(): boolean; } export {}; //# sourceMappingURL=lru.d.ts.map