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