import LRU from "lru-cache"; import { ICacheStorage } from "./storage-interface"; /** * LRU in memory cache storage (does not implement cache signatures) * All items are stored in memory and are immutable */ export declare class LruInMemoryStorage implements ICacheStorage { private cache; /** * Create a wrapper class for lru-cache package * @param options lru-cache cache options */ constructor(options: LRU.Options); /** * Retrieves cache key * @param key * @returns */ get(key: string, immutable?: boolean): Promise; /** * Sets cache key * @param key key to be set * @param ttlMilliseconds milliseconds to keep in cache * @param value value to store */ set(key: string, ttlMilliseconds: number, value: T, immutable?: boolean): Promise; /** * * @param key * @returns */ evict(key: string): Promise; } //# sourceMappingURL=lru-in-memory.d.ts.map