()
| 74 | |
| 75 | let redisSub: ExtendedRedis; |
| 76 | export function getRedisSub() { |
| 77 | if (!redisSub) { |
| 78 | redisSub = createRedisClient('redis-sub', REDIS_URL, { |
| 79 | ...options, |
| 80 | // Disable ready check for subscription client since it uses INFO command |
| 81 | // which is not allowed once the client enters subscription mode |
| 82 | enableReadyCheck: false, |
| 83 | }); |
| 84 | } |
| 85 | |
| 86 | return redisSub; |
| 87 | } |
| 88 | |
| 89 | let redisPub: ExtendedRedis; |
| 90 | export function getRedisPub() { |
no test coverage detected