Implemented BGSAVE

This commit is contained in:
Jonathan Leibiusky
2010-08-08 12:54:55 -03:00
parent 86f3cffe24
commit 6d92097c3a
3 changed files with 17 additions and 1 deletions

View File

@@ -515,4 +515,8 @@ public class Client extends Connection {
public void save() {
sendCommand("SAVE");
}
public void bgsave() {
sendCommand("BGSAVE");
}
}

View File

@@ -607,4 +607,9 @@ public class Jedis {
client.save();
return client.getStatusCodeReply();
}
public String bgsave() {
client.bgsave();
return client.getStatusCodeReply();
}
}