Predis\Pipeline\Pipeline::__construct PHP Method

__construct() public method

public __construct ( Predis\ClientInterface $client )
$client Predis\ClientInterface Client instance used by the context.
    public function __construct(ClientInterface $client)
    {
        $this->client = $client;
        $this->pipeline = new \SplQueue();
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function __construct(ClientInterface $client)
 {
     if (!$client->getProfile()->supportsCommands(array('multi', 'exec', 'discard'))) {
         throw new ClientException("The current profile does not support 'MULTI', 'EXEC' and 'DISCARD'.");
     }
     parent::__construct($client);
 }
All Usage Examples Of Predis\Pipeline\Pipeline::__construct