public executeCommand ( Predis\Command\CommandInterface $command ) : mixed | ||
$command | Predis\Command\CommandInterface | Command instance. |
Результат | mixed |
public function executeCommand(CommandInterface $command);
/** * {@inheritdoc} */ public function executeCommand(CommandInterface $command) { $response = $this->connection->executeCommand($command); if ($response instanceof ResponseInterface) { if ($response instanceof ErrorResponseInterface) { $response = $this->onErrorResponse($command, $response); } return $response; } return $command->parseResponse($response); }