Implemented LASTSAVE

This commit is contained in:
Jonathan Leibiusky
2010-08-08 13:20:43 -03:00
parent bf3094f051
commit bb5fe63b72
3 changed files with 26 additions and 0 deletions

View File

@@ -523,4 +523,8 @@ public class Client extends Connection {
public void bgrewriteaof() {
sendCommand("BGREWRITEAOF");
}
public void lastsave() {
sendCommand("LASTSAVE");
}
}

View File

@@ -617,4 +617,9 @@ public class Jedis {
client.bgrewriteaof();
return client.getStatusCodeReply();
}
public int lastsave() {
client.lastsave();
return client.getIntegerReply();
}
}