+ add withScore operations

This commit is contained in:
Costin Leau
2010-11-09 12:59:26 +02:00
parent 1dcdb263e0
commit f2f56c72d5

View File

@@ -30,6 +30,12 @@ public interface RedisZSetCommands {
SUM, MIN, MAX;
}
public interface Tuple {
String getValue();
Double getScore();
}
Boolean zAdd(String key, double score, String value);
Boolean zRem(String key, String value);
@@ -42,10 +48,20 @@ public interface RedisZSetCommands {
Set<String> zRange(String key, int start, int end);
Set<Tuple> zRangeWithScore(String key, int start, int end);
Set<String> zRevRange(String key, int start, int end);
Set<Tuple> zRevRangeWithScore(String key, int start, int end);
Set<String> zRangeByScore(String key, double min, double max);
Set<Tuple> zRangeByScoreWithScore(String key, double min, double max);
Set<String> zRangeByScore(String key, double min, double max, int offset, int count);
Set<Tuple> zRangeByScoreWithScore(String key, double min, double max, int offset, int count);
Integer zCount(String key, double min, double max);
Integer zCard(String key);