+ add Redis ZSet commands
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
|
||||
package org.springframework.datastore.redis.connection;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* ZSet(SortedSet)-specific commands supported by Redis.
|
||||
*
|
||||
@@ -23,4 +26,41 @@ package org.springframework.datastore.redis.connection;
|
||||
*/
|
||||
public interface RedisZSetCommands {
|
||||
|
||||
}
|
||||
public enum AGGREGATE {
|
||||
SUM, MIN, MAX;
|
||||
}
|
||||
|
||||
Boolean zAdd(String key, double score, String value);
|
||||
|
||||
Boolean zRem(String key, String value);
|
||||
|
||||
Double zIncrBy(String key, double increment, String value);
|
||||
|
||||
Integer zRank(String key, String value);
|
||||
|
||||
Integer zRevRank(String key, String value);
|
||||
|
||||
List<String> zRange(String key, int start, int end);
|
||||
|
||||
List<String> zRevRange(String key, int start, int end);
|
||||
|
||||
List<String> zRangeByScore(String key, double min, double max);
|
||||
|
||||
Integer zCount(String key, double min, double max);
|
||||
|
||||
Integer zCard(String key);
|
||||
|
||||
Double zScore(String key, String value);
|
||||
|
||||
Integer zRemRange(String key, int start, int end);
|
||||
|
||||
Integer zRemRangeByScore(String key, double min, double max);
|
||||
|
||||
Integer zUnionStore(String destKey, String... sets);
|
||||
|
||||
Integer zUnionStore(String destKey, AGGREGATE aggregate, double[] weights, String... sets);
|
||||
|
||||
Integer zInterStore(String destKey, String... sets);
|
||||
|
||||
Integer zInterStore(String destKey, AGGREGATE aggregate, double[] weights, String... sets);
|
||||
}
|
||||
Reference in New Issue
Block a user