Adjusted Predis\Commands\BackgroundSave according to the new behavior of BGSAVE in Redis 1.2.

This commit is contained in:
Daniele Alessandri
2010-01-09 12:00:36 +01:00
parent 84fb4390f9
commit 91543d776f
+6
View File
@@ -1461,6 +1461,12 @@ class Save extends \Predis\InlineCommand {
class BackgroundSave extends \Predis\InlineCommand {
public function canBeHashed() { return false; }
public function getCommandId() { return 'BGSAVE'; }
public function parseResponse($data) {
if ($data == 'Background saving started') {
return true;
}
return $data;
}
}
class LastSave extends \Predis\InlineCommand {