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();
}
/** * {@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); }