123456789101112131415161718192021222324 |
- <?php
- namespace Predis\Commands;
- class ServerSlaveOf 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 onPrefixKeys(Array $arguments, $prefix) {
-
- }
- protected function canBeHashed() {
- return false;
- }
- }
|