import { MemoCache } from '@naturalcycles/js-lib'; import LRUCache = require('lru-cache'); export declare type LRUMemoCacheOpts = LRUCache.Options; /** * @example * Use it like this: * * @_Memo({ cacheFactory: () => new LRUMemoCache({...}) }) * method1 () */ export declare class LRUMemoCache implements MemoCache { constructor(opt: LRUMemoCacheOpts); private lru; has(k: any): boolean; get(k: any): any; set(k: any, v: any): void; clear(): void; }