mirror of
https://github.com/predis/predis.git
synced 2026-09-04 23:08:00 +00:00
Adjusted Predis\Commands\BackgroundSave according to the new behavior of BGSAVE in Redis 1.2.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user