Implemented INFO
This commit is contained in:
@@ -531,4 +531,8 @@ public class Client extends Connection {
|
|||||||
public void shutdown() {
|
public void shutdown() {
|
||||||
sendCommand("SHUTDOWN");
|
sendCommand("SHUTDOWN");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void info() {
|
||||||
|
sendCommand("INFO");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -633,4 +633,9 @@ public class Jedis {
|
|||||||
}
|
}
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String info() {
|
||||||
|
client.info();
|
||||||
|
return client.getBulkReply();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -38,4 +38,10 @@ public class PersistenceControlCommandsTest extends JedisCommandTestBase {
|
|||||||
int after = jedis.lastsave();
|
int after = jedis.lastsave();
|
||||||
assertTrue((after - before) > 0);
|
assertTrue((after - before) > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void info() throws InterruptedException {
|
||||||
|
String info = jedis.info();
|
||||||
|
assertNotNull(info);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user