Hashes hkeys and hvals refactored to return a set instead of a list.
It looks like the order is not guaranted, so a set seems much adapted than a list.
This commit is contained in:
@@ -164,12 +164,12 @@ public class BinaryShardedJedis extends Sharded<Jedis, JedisShardInfo> implement
|
||||
return j.hlen(key);
|
||||
}
|
||||
|
||||
public List<byte[]> hkeys(byte[] key) {
|
||||
public Set<byte[]> hkeys(byte[] key) {
|
||||
Jedis j = getShard(key);
|
||||
return j.hkeys(key);
|
||||
}
|
||||
|
||||
public List<byte[]> hvals(byte[] key) {
|
||||
public Set<byte[]> hvals(byte[] key) {
|
||||
Jedis j = getShard(key);
|
||||
return j.hvals(key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user