(cb: () => void)
| 82 | * Useful for resetting cached adapters that hold a stale Redis reference. |
| 83 | */ |
| 84 | export function onRedisReconnect(cb: () => void): void { |
| 85 | state.reconnectListeners.push(cb) |
| 86 | } |
| 87 | |
| 88 | function startPingHealthCheck(redis: Redis): void { |
| 89 | if (state.pingInterval) return |
no test coverage detected