-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redis Cache Rate Limiting to InMemory FallBack Not Working #241
Comments
I'm hitting the same issue, did you get anywhere with it? |
This works fine for me:
RedisOptions.cs
I've noticed a significant performance gain after removing the Redis IsConnected check from
The only downside is that there is a concurrency issue with the default AsyncKeyLockProcessingStrategy implementation. The ideal solution would be a custom processing strategy that tries to use RedisProcessingStrategy and falls back to AsyncKeyLockProcessingStrategy. It would be nice if there was an officially supported option for Redis with In-Memory fallback (or at least a separate package) and it could be simply added via |
Hello everyone.,
I have been trying to implement
Redis Cache rate limiting
which falls back toIn-Memory rate limiting
. I am trying to implementIRateLimitCounterStore
(using the entire class ) just as the Solution2 mentioned here: https://github.com/stefanprodan/AspNetCoreRateLimit/wiki/Using-Redis-as-a-distributed-counter-storeSomehow, it is not even hitting the
GetAsync
orSetAsync
methods, even though the class is injected and passed down the service configuration.Any ideas on how to implement it? Or what could be going wrong?
I am implementing it like this
Startup.cs
This is my Custom class to override
LogBlockedRequest
The text was updated successfully, but these errors were encountered: