This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Redis storage does is not working - no errors #1140
Comments
Hi @twigs67, I've just installed and configured the module and it successfully works with the following packages: "ioredis": "^5.3.1",
"nestjs-throttler-storage-redis": "^0.3.0",
"redis": "3",
"@types/ioredis": "^5.0.0", Here's my storage configuration: storage: new ThrottlerStorageRedisService(
new Redis({
host: configService.get<string>('REDIS_HOST'),
port: +configService.get<string>('REDIS_PORT'),
password: configService.get<string>('REDIS_PASSWORD'),
db: +configService.get<string>('REDIS_THROTTLER_DB'),
}),
), |
@twigs67 You can check if rate limiter is working by using Shell 1: Then in shell 4 you can run
If you see something to this output, you know the throttler works. |
Closing due to inactivity. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Rate limiter does not seem to work when using Redis. However, no errors are being thrown to indicate that the connection is unsuccessful.
Packages:
Just seeing if anyone has any ideas?
The text was updated successfully, but these errors were encountered: