public Dictionary<ConnectionMultiplexer, RedisKey[]> GetReadConnections(RedisKey[] keys)
{
var result = new Dictionary<ConnectionGroup, List<RedisKey>>();
foreach (RedisKey key in keys)
{
var connection = this._consistentHashRing.GetNode(key);
if (!result.ContainsKey(connection))
{
result[connection] = new List<RedisKey> { key };
}
else
{
result[connection].Add(key);
}
}
return result.ToDictionary(r => r.Key.GetReadMultiplexer(), r => r.Value.ToArray());
}