Implemented CONFIG

This commit is contained in:
Jonathan Leibiusky
2010-08-08 16:07:33 -03:00
parent c290540968
commit 3f0ecebe72
3 changed files with 35 additions and 0 deletions

View File

@@ -547,4 +547,12 @@ public class Client extends Connection {
public void slaveofNoOne() {
sendCommand("SLAVEOF", "no", "one");
}
public void configGet(String pattern) {
sendCommand("CONFIG", "GET", pattern);
}
public void configSet(String parameter, String value) {
sendCommand("CONFIG", "SET", parameter, value);
}
}

View File

@@ -670,4 +670,14 @@ public class Jedis {
return client.getStatusCodeReply();
}
public List<String> configGet(String pattern) {
client.configGet(pattern);
return client.getMultiBulkReply();
}
public String configSet(String parameter, String value) {
client.configSet(parameter, value);
return client.getStatusCodeReply();
}
}