Implemented linsert

This commit is contained in:
Jonathan Leibiusky
2010-09-15 17:17:24 -03:00
parent e4d5c182d0
commit 3d1546131a
4 changed files with 47 additions and 0 deletions

View File

@@ -5,6 +5,10 @@ import java.util.List;
import java.util.Map;
public class Client extends Connection {
public enum LIST_POSITION {
BEFORE, AFTER
}
private boolean isInMulti;
public boolean isInMulti() {
@@ -587,4 +591,9 @@ public class Client extends Connection {
public void echo(String string) {
sendCommand("ECHO", string);
}
public void linsert(String key, LIST_POSITION where, String pivot,
String value) {
sendCommand("LINSERT", key, where.toString(), pivot, value);
}
}