Predis\ClientInterface::getCommandFactory PHP Method

getCommandFactory() public method

Returns the command factory used by the client.
public getCommandFactory ( ) : Predis\Command\FactoryInterface
return Predis\Command\FactoryInterface
    public function getCommandFactory();

Usage Example

Esempio n. 1
0
 /**
  * {@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);
 }
All Usage Examples Of Predis\ClientInterface::getCommandFactory