Scores should be represented as doubles, not ints
This commit is contained in:
committed by
Jonathan Leibiusky
parent
6a7b1db319
commit
366b2a05c2
@@ -477,7 +477,7 @@ public class Client extends Connection {
|
|||||||
.valueOf(end));
|
.valueOf(end));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void zremrangeByScore(String key, int start, int end) {
|
public void zremrangeByScore(String key, double start, double end) {
|
||||||
sendCommand("ZREMRANGEBYSCORE", key, String.valueOf(start), String
|
sendCommand("ZREMRANGEBYSCORE", key, String.valueOf(start), String
|
||||||
.valueOf(end));
|
.valueOf(end));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -697,7 +697,7 @@ public class Jedis {
|
|||||||
return client.getIntegerReply();
|
return client.getIntegerReply();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int zremrangeByScore(String key, int start, int end) {
|
public int zremrangeByScore(String key, double start, double end) {
|
||||||
checkIsInMulti();
|
checkIsInMulti();
|
||||||
client.zremrangeByScore(key, start, end);
|
client.zremrangeByScore(key, start, end);
|
||||||
return client.getIntegerReply();
|
return client.getIntegerReply();
|
||||||
|
|||||||
Reference in New Issue
Block a user