Predis\Connection\ConnectionInterface::executeCommand PHP Метод

executeCommand() публичный Метод

Writes a request for the given command over the connection and reads back the response returned by Redis.
public executeCommand ( Predis\Command\CommandInterface $command ) : mixed
$command Predis\Command\CommandInterface Command instance.
Результат mixed
    public function executeCommand(CommandInterface $command);

Usage Example

Пример #1
0
 /**
  * {@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);
 }
All Usage Examples Of Predis\Connection\ConnectionInterface::executeCommand