Partial support for sorting
This commit is contained in:
@@ -340,8 +340,8 @@ public class Client extends Connection {
|
||||
}
|
||||
|
||||
public void zrevrange(String key, int start, int end) throws JedisException {
|
||||
sendCommand("ZREVRANGE", key, String.valueOf(start), String
|
||||
.valueOf(end));
|
||||
sendCommand("ZREVRANGE", key, String.valueOf(start),
|
||||
String.valueOf(end));
|
||||
}
|
||||
|
||||
public void zrangeWithScores(String key, int start, int end)
|
||||
@@ -352,8 +352,8 @@ public class Client extends Connection {
|
||||
|
||||
public void zrevrangeWithScores(String key, int start, int end)
|
||||
throws JedisException {
|
||||
sendCommand("ZREVRANGE", key, String.valueOf(start), String
|
||||
.valueOf(end), "WITHSCORES");
|
||||
sendCommand("ZREVRANGE", key, String.valueOf(start),
|
||||
String.valueOf(end), "WITHSCORES");
|
||||
}
|
||||
|
||||
public void zcard(String key) throws JedisException {
|
||||
@@ -383,4 +383,13 @@ public class Client extends Connection {
|
||||
public void unwatch() throws JedisException {
|
||||
sendCommand("UNWATCH");
|
||||
}
|
||||
}
|
||||
|
||||
public void sort(String key) throws JedisException {
|
||||
sendCommand("SORT", key);
|
||||
}
|
||||
|
||||
public void sort(String key, SortingParams sortingParameters)
|
||||
throws JedisException {
|
||||
sendCommand("SORT", sortingParameters.getParams());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user