diff --git a/bun.lockb b/bun.lockb index 4fb12fd..81df191 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 0942d5e..3420871 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "bcrypt": "^5.1.1", "cookie": "^1.0.2", "elysia": "latest", + "ioredis": "^5.6.1", "joi": "^17.13.3", "jsonwebtoken": "^9.0.2", "ua-parser-js": "^2.0.3" diff --git a/src/utils/databases/redis/connection.ts b/src/utils/databases/redis/connection.ts new file mode 100644 index 0000000..5325864 --- /dev/null +++ b/src/utils/databases/redis/connection.ts @@ -0,0 +1,7 @@ +import Redis from "ioredis"; + +export const redis = new Redis({ + host: process.env.REDIS_HOST, + port: Number(process.env.REDIS_PORT), + password: process.env.REDIS_PASSWORD, +});