MCPcopy Index your code
hub / github.com/wei/pull / getRedisClient

Function getRedisClient

src/configs/redis.ts:4–10  ·  view source on GitHub ↗
(name?: string)

Source from the content-addressed store, hash-verified

2import { Redis } from "ioredis";
3
4export const getRedisClient = (name?: string) => {
5 const redisClient = new Redis(appConfig.redisConfig!, {
6 maxRetriesPerRequest: null,
7 name,
8 });
9 return redisClient;
10};

Callers 2

index.tsFile · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected