mirror of
https://github.com/predis/predis.git
synced 2026-08-23 21:39:42 +00:00
21 lines
407 B
PHP
21 lines
407 B
PHP
<?php
|
|
|
|
namespace Predis\Commands;
|
|
|
|
class SlaveOf extends Command {
|
|
public function getId() {
|
|
return 'SLAVEOF';
|
|
}
|
|
|
|
public function filterArguments(Array $arguments) {
|
|
if (count($arguments) === 0 || $arguments[0] === 'NO ONE') {
|
|
return array('NO', 'ONE');
|
|
}
|
|
return $arguments;
|
|
}
|
|
|
|
protected function canBeHashed() {
|
|
return false;
|
|
}
|
|
}
|