new - dump and restore command

This commit is contained in:
mindwind
2013-06-29 14:17:44 +08:00
parent 7b6006b669
commit 8b3ea5f2de
8 changed files with 55 additions and 5 deletions

View File

@@ -102,6 +102,14 @@ public class BinaryClient extends Connection {
public void del(final byte[]... keys) {
sendCommand(DEL, keys);
}
public void dump(final byte[] key) {
sendCommand(DUMP, key);
}
public void restore(final byte[] key, final int ttl, final byte[] serializedValue) {
sendCommand(RESTORE, key, toByteArray(ttl), serializedValue);
}
public void type(final byte[] key) {
sendCommand(TYPE, key);