public interface KeyHasher
ShardedAsyncRedisClient.| Modifier and Type | Method and Description |
|---|---|
int |
getConnectionIndex(String key,
AsyncRedisConnection[] connections,
boolean useOnlyActive)
Returns the connection index for a key
|
int getConnectionIndex(String key, AsyncRedisConnection[] connections, boolean useOnlyActive)
key - key to assign the connection indexconnections - Connections to pick fromuseOnlyActive - True if only active connections are to be picked. Usually true is passed by ShardedAsyncRedisClient.Copyright © 2013- Suresh Mahalingam. All Rights Reserved.