Implemented INFO

This commit is contained in:
Jonathan Leibiusky
2010-08-08 13:29:38 -03:00
parent 5cc2d8874b
commit 0453ffcd1f
3 changed files with 15 additions and 0 deletions

View File

@@ -531,4 +531,8 @@ public class Client extends Connection {
public void shutdown() {
sendCommand("SHUTDOWN");
}
public void info() {
sendCommand("INFO");
}
}

View File

@@ -633,4 +633,9 @@ public class Jedis {
}
return status;
}
public String info() {
client.info();
return client.getBulkReply();
}
}

View File

@@ -38,4 +38,10 @@ public class PersistenceControlCommandsTest extends JedisCommandTestBase {
int after = jedis.lastsave();
assertTrue((after - before) > 0);
}
@Test
public void info() throws InterruptedException {
String info = jedis.info();
assertNotNull(info);
}
}