Added bunch of missing commands and a test to check if Jedis is updated

This commit is contained in:
Jonathan Leibiusky
2010-09-14 12:08:56 -03:00
parent 9b202c3fb1
commit a8ffacd30a
7 changed files with 179 additions and 2 deletions

View File

@@ -790,4 +790,33 @@ public class Jedis {
public boolean isConnected() {
return client.isConnected();
}
public int strlen(String key) {
client.strlen(key);
return client.getIntegerReply();
}
public void sync() {
client.sync();
}
public int lpushx(String key, String string) {
client.lpushx(key, string);
return client.getIntegerReply();
}
public int persist(String key) {
client.persist(key);
return client.getIntegerReply();
}
public int rpushx(String key, String string) {
client.rpushx(key, string);
return client.getIntegerReply();
}
public String echo(String string) {
client.echo(string);
return client.getBulkReply();
}
}