Added MurmureHash as sharding algo.
This commit is contained in:
@@ -5,6 +5,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import redis.clients.util.Hashing;
|
||||
import redis.clients.util.ShardInfo;
|
||||
import redis.clients.util.Sharded;
|
||||
|
||||
@@ -13,6 +14,10 @@ public class ShardedJedis extends Sharded<Jedis> {
|
||||
super(shards);
|
||||
}
|
||||
|
||||
public ShardedJedis(List<ShardInfo> shards, Hashing algo) {
|
||||
super(shards, algo);
|
||||
}
|
||||
|
||||
public String set(String key, String value) {
|
||||
Jedis j = getShard(key);
|
||||
return j.set(key, value);
|
||||
|
||||
Reference in New Issue
Block a user