MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getRedisSub

Function getRedisSub

packages/redis/redis.ts:76–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74
75let redisSub: ExtendedRedis;
76export 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
89let redisPub: ExtendedRedis;
90export function getRedisPub() {

Callers 3

shutdownFunction · 0.90

Calls 1

createRedisClientFunction · 0.85

Tested by

no test coverage detected