* Get the underlying Redis client for advanced operations (e.g., Lua scripts) * Use with caution - prefer cache service methods when possible * @returns The Redis client instance or null if not ready
()
| 40 | * @returns The Redis client instance or null if not ready |
| 41 | */ |
| 42 | getRedisClient(): RedisClient | null { |
| 43 | if (!this.isRedisClientReady()) { |
| 44 | return null; |
| 45 | } |
| 46 | return this.redis; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Get a value from cache with automatic JSON deserialization |