()
| 119 | } |
| 120 | |
| 121 | public getClient(): Redis | null { |
| 122 | if (!this.redisClient || !this.isConnected) { |
| 123 | logger.warn("REDIS_MANAGER: Redis client not available or not connected"); |
| 124 | return null; |
| 125 | } |
| 126 | return this.redisClient; |
| 127 | } |
| 128 | |
| 129 | public isClientConnected(): boolean { |
| 130 | return this.isConnected && this.redisClient !== null; |