Closed almightydegu closed 7 months ago
Hi @almightydegu , line 82 is an alternative way of initializing RedisCounterStore, intended for those cases when you also use Redis for something else (and hence already have IConnectionMultiplexer instance in the DI container).
In your case you do not need to uncomment that line.
All you need is a local Redis instance running locally and available on that port 6379
.
Ways of configuring non-default Counter Stores are explained here.
Thats great thank you for clearing that up
Hello,
I'm trying to use redis as a counter store but im getting this error:
No service for type 'StackExchange.Redis.IConnectionMultiplexer' has been registered
. Im also getting this error on the same projectThrottlingTrollSampleWeb
. The only things I have updated is changing theredisConnString
to belocalhost:6379
and uncommented line 82. Below is what in theProgram.cs
please let me know if I have missed a step: