123456789101112131415161718192021222324252627282930 |
- <?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;
- }
- }
|