import IORedis, { Cluster } from 'ioredis'; import { Apm } from '../../apm/apm'; import { CacheInterface } from '../cache.interface'; import { CompressionInterface } from '../compression.interface'; export declare class RedisCache implements CacheInterface { protected instance: string; protected apm?: Apm; protected compression: CompressionInterface; constructor(instance?: string, apm?: Apm); setCompression(compression: CompressionInterface): void; protected getWriteClient(): Promise; protected getReadClient(): Promise; get(cacheHash: string): Promise; getMultiple(cacheHashes: string[]): Promise; delete(cacheHash: string): Promise; set(cacheHash: string, data: any, expireInSeconds?: number): Promise; getCacheHash(cacheHash: string): string; clearAll(cachePrefix: string): Promise; close(): Promise; protected startSpan(span: string, func: Function): Promise; }