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:
Yaourt
2010-11-08 15:57:43 +01:00
parent e8704296fd
commit dd6874aa7a
7 changed files with 32 additions and 28 deletions

View File

@@ -150,12 +150,12 @@ public class ShardedJedis extends BinaryShardedJedis implements JedisCommands {
return j.hlen(key);
}
public List<String> hkeys(String key) {
public Set<String> hkeys(String key) {
Jedis j = getShard(key);
return j.hkeys(key);
}
public List<String> hvals(String key) {
public Set<String> hvals(String key) {
Jedis j = getShard(key);
return j.hvals(key);
}