I've setup a local docker environment for an HA redis cluster (2 replicas, 1 master, 3 sentinels). Only the sentinels are exposing ports (10021, 10022, 10023).
I'm using the stackexchange.redis C# client v.2.1.58, and try to do some basic operations.
This is my sample code.
ConfigurationOptions configuration = new ConfigurationOptions
{
/// sentinels
EndPoints =
{
{ "localhost", 10021 },
{ "localhost", 10022 },
{ "localhost", 10023 }
},
CommandMap = CommandMap.Sentinel,
ServiceName = "redismaster",
Ssl = false,
};
ConnectionMultiplexer connection = ConnectionMultiplexer.SentinelConnect(configuration, Console.Out);
IDatabase database = connection.GetDatabase();
When trying a set operation
database.StringSetAsync("key", "value");
I'm getting
This operation has been disabled in the command-map and cannot be used: SET
I'm thinking that the operations are done against the sentinel nodes, but I'm not sure.
Some help with this ?