public getCommandFactory ( ) : Predis\Command\FactoryInterface | ||
Résultat | Predis\Command\FactoryInterface |
public function getCommandFactory();
/** * {@inheritdoc} */ public function __construct(ClientInterface $client) { if (!$client->getCommandFactory()->supportsCommands(array('multi', 'exec', 'discard'))) { throw new ClientException("'MULTI', 'EXEC' and 'DISCARD' are not supported by the current command factory."); } parent::__construct($client); }