Class yii\redis\predis\Command\CommandDecorator
| Inheritance | yii\redis\predis\Command\CommandDecorator » Predis\Command\Redis\COMMAND |
|---|---|
| Source Code | https://github.com/yiisoft/yii2-redis/blob/master/src/predis/Command/CommandDecorator.php |
Public Methods
Method Details
| public mixed __call ( mixed $method, mixed $args ) | ||
| $method | mixed | |
| $args | mixed | |
public function __call($method, $args) { return call_user_func_array([$this->originalCommand, $method], $args); }
| public mixed __construct ( \Predis\Command\CommandInterface $command ) | ||
| $command | \Predis\Command\CommandInterface | |
public function __construct(CommandInterface $command)
{
$this->originalCommand = $command;
}
| public mixed getArgument ( mixed $index ) | ||
| $index | mixed | |
public function getArgument($index) { return $this->originalCommand->getArgument($index); }
| public array getArguments ( ) |
public function getArguments(): array { return $this->originalCommand->getArguments(); }
| public ?int getSlot ( ) |
public function getSlot(): ?int { return $this->originalCommand->getSlot(); }
| public mixed parseResp3Response ( mixed $data ) | ||
| $data | mixed | |
public function parseResp3Response($data) { return $this->originalCommand->parseResp3Response($data); }
Yii components expect response without changes
| public parseResponse ( mixed $data ) | ||
| $data | mixed | |
public function parseResponse($data)
{
return $data;
}
| public string serializeCommand ( ) |
public function serializeCommand(): string { return $this->originalCommand->serializeCommand(); }
| public void setArguments ( array $arguments ) | ||
| $arguments | array | |
public function setArguments(array $arguments): void { $this->originalCommand->setArguments($arguments); }
| public void setRawArguments ( array $arguments ) | ||
| $arguments | array | |
public function setRawArguments(array $arguments): void { $this->originalCommand->setRawArguments($arguments); }