mirror of
https://github.com/predis/predis.git
synced 2026-08-20 03:22:38 +00:00
21 lines
364 B
PHP
21 lines
364 B
PHP
<?php
|
|
|
|
namespace Predis\Commands;
|
|
|
|
class BackgroundSave extends Command {
|
|
public function getId() {
|
|
return 'BGSAVE';
|
|
}
|
|
|
|
protected function canBeHashed() {
|
|
return false;
|
|
}
|
|
|
|
public function parseResponse($data) {
|
|
if ($data == 'Background saving started') {
|
|
return true;
|
|
}
|
|
return $data;
|
|
}
|
|
}
|