Predis\Connection\Aggregate\RedisCluster::__construct PHP Метод

__construct() публичный Метод

public __construct ( Predis\Connection\FactoryInterface $connections, Predis\Cluster\StrategyInterface $strategy = null )
$connections Predis\Connection\FactoryInterface Optional connection factory.
$strategy Predis\Cluster\StrategyInterface Optional cluster strategy.
    public function __construct(FactoryInterface $connections, StrategyInterface $strategy = null)
    {
        $this->connections = $connections;
        $this->strategy = $strategy ?: new RedisClusterStrategy();
    }