public override int GetHashSlot(ServerSelectionStrategy serverSelectionStrategy) { var slot = serverSelectionStrategy.HashSlot(Key); slot = serverSelectionStrategy.CombineSlot(slot, key1); return(slot); }
public override int GetHashSlot(ServerSelectionStrategy serverSelectionStrategy) { var slot = serverSelectionStrategy.HashSlot(Key); for (int i = 0; i < keys.Length; i++) { slot = serverSelectionStrategy.CombineSlot(slot, keys[i]); } return(slot); }
/// <summary> /// Gets the node that serves the specified key's slot. /// </summary> /// <param name="key">The key to identify a node by.</param> public ClusterNode GetBySlot(RedisKey key) => GetBySlot(serverSelectionStrategy.HashSlot(key));
public override int GetHashSlot(ServerSelectionStrategy serverSelectionStrategy) { return(serverSelectionStrategy.HashSlot(Key)); }
internal override int GetHashSlot(ServerSelectionStrategy serverSelectionStrategy) { return(serverSelectionStrategy.HashSlot(key)); }
internal override int GetHashSlot(ServerSelectionStrategy serverSelectionStrategy) => serverSelectionStrategy.HashSlot(key);