Configure Master-Slave (Read/Write Splitting)
masterTo implement read/write splitting, provide multiple connection strings to the RedisClient constructor. Writes will be directed to the first address (Master), while reads will be distributed randomly among the subsequent addresses (Slaves).
public static RedisClient cli = new RedisClient(
"127.0.0.1:6379,password=123,defaultDatabase=13",
"127.0.0.1:6380,password=123,defaultDatabase=13",
"127.0.0.1:6381,password=123,defaultDatabase=13"
);
var value = cli.Get("key1"); // Reads from 6380 or 6381