Download src/config/redis.config.ts from lynfera/api: direct link, hf CLI and curl.
- Browser
- Download file 285 Bytes
-
https://huggingface.co/spaces/lynfera/api/resolve/main/src/config/redis.config.ts
- Command line
-
hf download hf://spaces/lynfera/api/src/config/redis.config.ts
-
curl -L -o redis.config.ts https://huggingface.co/spaces/lynfera/api/resolve/main/src/config/redis.config.ts
285 Bytes
| import { ENVS } from "@/config/env.config.js"; | |
| import { Redis } from "ioredis"; | |
| export const redisClient = new Redis((ENVS.REDIS_URL as string) || ""); | |
| export const redisEmitterPublisher = new Redis((ENVS.REDIS_URL as string) || ""); | |
| export const redisEmitterSubscriber = redisClient; | |