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

@@ -627,4 +627,9 @@ public class BinaryClient extends Connection {
public void debug(final DebugParams params) {
sendCommand(DEBUG, params.getCommand());
}
public void brpoplpush(final byte[] source, final byte[] destination,
final int timeout) {
sendCommand(BRPOPLPUSH, source, destination, toByteArray(timeout));
}
}