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

示例#1
0
文件: Atomic.php 项目: nrk/predis
 /**
  * {@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