Skip to content

Commit

Permalink
Pipeline.sort with dstkey uses right Response type
Browse files Browse the repository at this point in the history
  • Loading branch information
ivowiblo committed Apr 18, 2012
1 parent be163ac commit e4f7f61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/redis/clients/jedis/Pipeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -672,14 +672,14 @@ public Response<Long> smove(byte[] srckey, byte[] dstkey, byte[] member) {
return getResponse(BuilderFactory.LONG);
}

public Response<List<String>> sort(String key) {
public Response<Long> sort(String key) {
client.sort(key);
return getResponse(BuilderFactory.STRING_LIST);
return getResponse(BuilderFactory.LONG);
}

public Response<List<String>> sort(byte[] key) {
public Response<Long> sort(byte[] key) {
client.sort(key);
return getResponse(BuilderFactory.STRING_LIST);
return getResponse(BuilderFactory.LONG);
}

public Response<List<String>> sort(String key,
Expand Down

0 comments on commit e4f7f61

Please sign in to comment.