diff options
| author | JustZvan <justzvan@justzvan.xyz> | 2026-02-06 12:16:40 +0100 |
|---|---|---|
| committer | JustZvan <justzvan@justzvan.xyz> | 2026-02-06 12:16:40 +0100 |
| commit | e904e9634548e47d611bdcbb88d7b180b927fd5f (patch) | |
| tree | 21aa5be08fc5b22585508c0263ee5ea4effcc593 /src/db/redis/client.ts | |
feat: initial commit!
Diffstat (limited to 'src/db/redis/client.ts')
| -rw-r--r-- | src/db/redis/client.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/db/redis/client.ts b/src/db/redis/client.ts new file mode 100644 index 0000000..55c0535 --- /dev/null +++ b/src/db/redis/client.ts @@ -0,0 +1,10 @@ +import Redis from "ioredis"; +import { connection } from "./info"; + +/** Redis client instance for caching and session management */ +export const redis = new Redis({ + host: connection.host, + port: connection.port, + password: connection.password, + db: connection.db, +}); |