I have multiple redis instances on my host (ports 6379, 6380). Currently I'm able to connect to the first instance (6379) using the setup below:
services.AddSingleton<IRedisClientsManager>(p =>
new PooledRedisClientManager(Configuration.GetValue<long>("Redis:DatabaseId"), Configuration.GetValue<string>("127.0.0.1:6379"))
{
ConnectTimeout = Configuration.GetValue<int>("Redis:connectTimeOut"),
IdleTimeOutSecs = Configuration.GetValue<int>("Redis:idleTimeOutSecs"),
PoolTimeout = Configuration.GetValue<int>("Redis:poolTimeOut")
});
Given past experiences with Single Redis instance or Redis sentinel, i have decided to split mutually exclusive operations across multiple Redis instances to spread the work load
for example:
All Operation A will use the 6379 instance while All Operation B will use the 6380 instance
I have read ServiceStack documentation but didn't find any relevant information.
Any suggestion on how this can be achieved?