Skip to content

Commit 4418e80

Browse files
committed
fix: add ioredis
1 parent 1ca9071 commit 4418e80

File tree

10 files changed

+313
-310
lines changed

10 files changed

+313
-310
lines changed

env/.env.example

+8-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,14 @@ CLOUDINARY_API_SECRET=a
5353

5454
# redis
5555
REDIS_TTL=10
56-
REDIS_URI=redis://default:${PASSWORD}@redis:6379
56+
REDIS_USERNAME=
57+
58+
REDIS_PASSWORD=
59+
60+
REDIS_HOST=
61+
62+
REDIS_PORT=
63+
REDIS_URI=redis://${REDIS_USERNAME}:${REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}
5764

5865
# rabbitmq
5966
RABBITMQ_URI=aa

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"@supercharge/request-ip": "^1.2.0",
8888
"argon2": "^0.31.0",
8989
"cache-manager": "5.2.3",
90-
"cache-manager-redis-yet": "^4.1.2",
90+
"cache-manager-ioredis-yet": "^1.2.2",
9191
"class-transformer": "^0.5.1",
9292
"class-validator": "^0.14.0",
9393
"compression-next": "^1.0.3",
@@ -136,8 +136,6 @@
136136
},
137137
"devDependencies": {
138138
"@firebase/app-compat": "0.x",
139-
"@total-typescript/ts-reset": "^0.4.2",
140-
"@types/compression": "^1.7.2",
141139
"@firebase/app-types": "0.x",
142140
"@golevelup/ts-jest": "^0.4.0",
143141
"@mikro-orm/cli": "^5.7.14",
@@ -150,8 +148,10 @@
150148
"@side/jest-runtime": "^1.1.0",
151149
"@swc/core": "^1.3.76",
152150
"@swc/jest": "^0.2.28",
151+
"@total-typescript/ts-reset": "^0.4.2",
153152
"@types/cache-manager": "^4.0.2",
154153
"@types/cache-manager-redis-store": "^2.0.1",
154+
"@types/compression": "^1.7.2",
155155
"@types/jest": "^29.5.3",
156156
"@types/multer": "^1.4.7",
157157
"@types/node": "^20.4.9",

0 commit comments

Comments
 (0)