import * as memjs from "memjs"; import { ICacheStorage } from "./storage-interface"; /** * Memcache cache storage (implements cache signatures) * All items are stored in memcache and are immutable after retrieval * because they might be shared between threads to prevent data corruption */ export declare class MemcacheStorage implements ICacheStorage { private cache; /** * Create a wrapper class for memjs package * @param memcacheClient memjs client instance */ constructor(memcacheClient: memjs.Client); /** * 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; /** * Evict cache key * @param key * @returns Promise */ evict(key: string): Promise; } //# sourceMappingURL=memcache.d.ts.map