Class yii\redis\Predis\Command\CommandDecorator
| Inheritance | yii\ |
|---|---|
| Source Code | https://github.com/yiisoft/yii2-redis/blob/master/Predis/Command/CommandDecorator.php |
Public Methods
Method Details
| public __call( mixed $method, mixed $args ): mixed | ||
| $method | mixed | |
| $args | mixed | |
public function __call($method, $args)
{
return call_user_func_array([$this->originalCommand, $method], $args);
}
| public __construct( \Predis\Command\CommandInterface $command ): mixed | ||
| $command | \Predis\Command\CommandInterface | |
public function __construct(CommandInterface $command)
{
$this->originalCommand = $command;
}
| public getArgument( mixed $index ): mixed | ||
| $index | mixed | |
public function getArgument($index)
{
return $this->originalCommand->getArgument($index);
}
| public getArguments( ): array |
public function getArguments(): array
{
return $this->originalCommand->getArguments();
}
| public getSlot( ): integer|null |
public function getSlot(): ?int
{
return $this->originalCommand->getSlot();
}
| public parseResp3Response( mixed $data ): mixed | ||
| $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 serializeCommand( ): string |
public function serializeCommand(): string
{
return $this->originalCommand->serializeCommand();
}
| public setArguments( array $arguments ): void | ||
| $arguments | array | |
public function setArguments(array $arguments): void
{
$this->originalCommand->setArguments($arguments);
}
| public setRawArguments( array $arguments ): void | ||
| $arguments | array | |
public function setRawArguments(array $arguments): void
{
$this->originalCommand->setRawArguments($arguments);
}