list command receive now long parameters to be consistent with return type
This commit is contained in:
@@ -191,22 +191,22 @@ public class Transaction extends BinaryTransaction {
|
||||
return getResponse(BuilderFactory.LONG);
|
||||
}
|
||||
|
||||
public Response<List<String>> lrange(String key, int start, int end) {
|
||||
public Response<List<String>> lrange(String key, long start, long end) {
|
||||
client.lrange(key, start, end);
|
||||
return getResponse(BuilderFactory.STRING_LIST);
|
||||
}
|
||||
|
||||
public Response<Long> lrem(String key, int count, String value) {
|
||||
public Response<Long> lrem(String key, long count, String value) {
|
||||
client.lrem(key, count, value);
|
||||
return getResponse(BuilderFactory.LONG);
|
||||
}
|
||||
|
||||
public Response<String> lset(String key, int index, String value) {
|
||||
public Response<String> lset(String key, long index, String value) {
|
||||
client.lset(key, index, value);
|
||||
return getResponse(BuilderFactory.STRING);
|
||||
}
|
||||
|
||||
public Response<String> ltrim(String key, int start, int end) {
|
||||
public Response<String> ltrim(String key, long start, long end) {
|
||||
client.ltrim(key, start, end);
|
||||
return getResponse(BuilderFactory.STRING);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user