stefanprodan / AspNetCoreRateLimit

ASP.NET Core rate limiting middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not seeing keys stored in Redis

MarounMaroun opened this issue · comments

My endpoint is being blocked if the rate exceeds the defined rules, however, when I inspect Redis keys, I don't see my IP anywhere.

My configurations:

services.AddSingleton<IRateLimitConfiguration, RateLimitConfiguration>();
services.Configure<IpRateLimitOptions>(Configuration.GetSection("IpRateLimiting"));
services.AddDistributedRateLimiting<AsyncKeyLockProcessingStrategy>();
services.AddRedisRateLimiting();
services.AddSingleton<IClientPolicyStore, DistributedCacheClientPolicyStore>();
services.AddSingleton<IRateLimitCounterStore, DistributedCacheRateLimitCounterStore>();