import Commander from "ioredis/built/utils/Commander"; import Redis from "ioredis"; import Cluster from "ioredis/built/cluster"; export type RedisConnect = { url?: string; host?: string; port?: number; appName?: string; heartbeat?: number; retryCountBeforeExit?: number; keepAlive?: boolean; [x: string]: any; }; export declare class RedisClient { private static instance; private redis; private config; /** * Get the singleton instance of Redis * @returns {Redis} The singleton instance */ static getInstance(): RedisClient; /** * Reset the singleton instance (mainly for testing purposes) */ static resetInstance(): void; connect(config?: RedisConnect): Commander | any; private keepAlive; getRedisCommander(): Redis | Cluster; static getRedisCommander(): Commander; static getRedis(): Commander; }