export interface CacheInstanceConfig { host: string; port: number; password?: string; tls?: boolean; } export interface CacheModuleConfigOptions { /** * Primary Redis instance configuration (host, port, password, optional TLS). */ cacheMaster: CacheInstanceConfig; /** * Optional. Secondary (read-only) Redis instance configuration. */ cacheSlave?: CacheInstanceConfig; /** * Redis database index to use. Defaults to 0. */ database?: number; /** * Number of connection retry attempts before failing. * Defaults to 3. */ retryAttempts?: number; /** * Delay (ms) between retry attempts. * Defaults to 2000ms. */ retryDelay?: number; } export interface CacheModuleAsyncConfigOptions { /** * Factory function that resolves the Redis config. */ useFactory: (...args: any[]) => Promise | CacheModuleConfigOptions; /** * Dependencies to inject into the factory. */ inject?: any[]; /** * Optional imports for the module (e.g., ConfigModule). */ imports?: any[]; /** * Whether to register the module globally. Defaults to false. */ isGlobal?: boolean; } //# sourceMappingURL=cache.interfaces.d.ts.map