Added watch command

This commit is contained in:
Jonathan Leibiusky
2010-07-07 23:14:25 -03:00
parent 20acb5bc60
commit ce1ebdd022
3 changed files with 29 additions and 0 deletions

View File

@@ -375,4 +375,8 @@ public class Client extends Connection {
public void exec() throws JedisException {
sendCommand("EXEC");
}
public void watch(String key) throws JedisException {
sendCommand("WATCH", key);
}
}