import { IMap } from "hazelcast-client"; import { ICacheStorage } from "./storage-interface"; /** * Hazelcast cache storage (implements cache signatures) * All items are stored in Hazelcast distributed map and are immutable after retrieval * because they might be shared between threads to prevent data corruption */ export declare class HazelcastStorage implements ICacheStorage { private cache; /** * Create a wrapper class for Hazelcast IMap * @param hazelcastMap Hazelcast IMap instance */ constructor(hazelcastMap: IMap); /** * 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=hazelcast.d.ts.map