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

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

Returns the underlying connection factory used to create new connection instances to Redis nodes indicated by redis-cluster.
public getConnectionFactory ( ) : Predis\Connection\FactoryInterface
Результат Predis\Connection\FactoryInterface
    public function getConnectionFactory()
    {
        return $this->connections;
    }

Usage Example

 /**
  * @group disconnected
  */
 public function testAcceptsCustomConnectionFactory()
 {
     $factory = $this->getMock('Predis\\Connection\\FactoryInterface');
     $cluster = new RedisCluster($factory);
     $this->assertSame($factory, $cluster->getConnectionFactory());
 }