Constructor and Description |
---|
JavaKeyHasher() |
Modifier and Type | Method and Description |
---|---|
int |
getConnectionIndex(String key,
AsyncRedisConnection[] connections,
boolean useOnlyActive)
Returns the connection index for a key
|
public int getConnectionIndex(String key, AsyncRedisConnection[] connections, boolean useOnlyActive)
KeyHasher
getConnectionIndex
in interface KeyHasher
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.