Added incrByFloat and hincrByFloat commands (binary and standard) + support for pipelining and sharding
This commit is contained in:
@@ -192,6 +192,10 @@ public class BinaryClient extends Connection {
|
||||
sendCommand(INCRBY, key, toByteArray(integer));
|
||||
}
|
||||
|
||||
public void incrByFloat(final byte[] key, final double value) {
|
||||
sendCommand(INCRBYFLOAT, key, toByteArray(value));
|
||||
}
|
||||
|
||||
public void incr(final byte[] key) {
|
||||
sendCommand(INCR, key);
|
||||
}
|
||||
@@ -238,6 +242,10 @@ public class BinaryClient extends Connection {
|
||||
sendCommand(HINCRBY, key, field, toByteArray(value));
|
||||
}
|
||||
|
||||
public void hincrByFloat(final byte[] key, final byte[] field, final double value) {
|
||||
sendCommand(HINCRBYFLOAT, key, field, toByteArray(value));
|
||||
}
|
||||
|
||||
public void hexists(final byte[] key, final byte[] field) {
|
||||
sendCommand(HEXISTS, key, field);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user