add brpoplpush

This commit is contained in:
Jonathan Leibiusky
2010-12-20 11:10:02 -03:00
parent c30359581e
commit 3f79d80396
6 changed files with 90 additions and 1 deletions

View File

@@ -2876,4 +2876,19 @@ public class BinaryJedis implements BinaryJedisCommands {
public Client getClient() {
return client;
}
/**
* Pop a value from a list, push it to another list and return it; or block
* until one is available
*
* @param source
* @param destination
* @param timeout
* @return the element
*/
public String brpoplpush(byte[] source, byte[] destination, int timeout) {
client.brpoplpush(source, destination, timeout);
return client.getBulkReply();
}
}