Predis\Connection\ConnectionInterface::writeRequest PHP Method

writeRequest() public method

Writes the request for the given command over the connection.
public writeRequest ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface Command instance.
    public function writeRequest(CommandInterface $command);

Usage Example

Example #1
0
 /**
  * {@inheritdoc}
  */
 protected function executePipeline(ConnectionInterface $connection, SplQueue $commands)
 {
     while (!$commands->isEmpty()) {
         $connection->writeRequest($commands->dequeue());
     }
     $connection->disconnect();
     return array();
 }
All Usage Examples Of Predis\Connection\ConnectionInterface::writeRequest