Added incrByFloat and hincrByFloat commands (binary and standard) + support for pipelining and sharding

This commit is contained in:
Eric Treworgy
2013-01-07 12:33:19 -08:00
parent 2058231a61
commit 610f7d4546
14 changed files with 222 additions and 2 deletions

View File

@@ -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);
}