add brpoplpush
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user