.Net Core Implementing Redis cashing with master and slave connections -
i need use redis connection master , slave configuration in dot net core.
below code configured primary server(master) configured port 6379, , have slave configured 6380.
services.addsingleton < idistributedcache > (serviceprovider => new rediscache(new rediscacheoptions { configuration = primaryserver.connectionstring, instancename = primaryserver.instancename }));
below configuration:
"redissettings": { "primaryserver": { "connectionstring": "127.0.0.1:6379", "instancename": "somename" }, "secondaryserver": { "connectionstring": "127.0.0.1:6380", "instancename": "somename" } }
let me know if possible have master , slave setup idistributedcache
Comments
Post a Comment