public function createCommand($commandID, array $arguments = array())
{
if (!($commandClass = $this->getCommandClass($commandID))) {
$commandID = strtoupper($commandID);
throw new ClientException("Command '{$commandID}' is not a registered Redis command.");
}
$command = new $commandClass();
$command->setArguments($arguments);
if (isset($this->processor)) {
$this->processor->process($command);
}
return $command;
}