dotnet/aspnetcore
Auf GitHub ansehen[StackExchange.Redis] Add DefaultReadCommandFlag into RedisCacheOptions for read operations
Open
#28.375 geöffnet am 14. Mai 2019
area-middlewareenhancementfeature-cachinghelp wanted
Repository-Metriken
- Stars
- (37.933 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 16T 9h) (258 gemergte PRs in 30 T)
Beschreibung
Is your feature request related to a problem? Please describe.
I am trying to hookup RedisCache to multiple nodes in AWS ElastiCache. I have 1 primary node and n replication nodes. Currently when configuring RedisCacheOptions.ConfigurationOptions with multiple Endpoints, RedisCache doesn't read from the replication nodes.
Describe the solution you'd like
In StackExchange.Redis there is a CommandFlags enum that will allow us to PreferSlave. I would like to add another property along the lines of DefaultReadCommandFlag to RedisCacheOptions for read commands. This will allow us to specify PreferSlave and distribute load across the replication nodes.