Files
predis/lib/Predis/Commands/ServerSlaveOf.php
T
2011-05-05 17:30:05 +02:00

25 lines
507 B
PHP

<?php
namespace Predis\Commands;
class ServerSlaveOf extends Command {
public function getId() {
return 'SLAVEOF';
}
protected function filterArguments(Array $arguments) {
if (count($arguments) === 0 || $arguments[0] === 'NO ONE') {
return array('NO', 'ONE');
}
return $arguments;
}
protected function onPrefixKeys(Array $arguments, $prefix) {
/* NOOP */
}
protected function canBeHashed() {
return false;
}
}