Predis\Connection\Aggregate\PredisCluster::getClusterStrategy PHP Method

getClusterStrategy() public method

Returns the underlying command hash strategy used to hash commands by using keys found in their arguments.
public getClusterStrategy ( ) : Predis\Cluster\StrategyInterface
return Predis\Cluster\StrategyInterface
    public function getClusterStrategy()
    {
        return $this->strategy;
    }

Usage Example

 /**
  * @group disconnected
  */
 public function testExposesCommandHashStrategy()
 {
     $cluster = new PredisCluster();
     $this->assertInstanceOf('Predis\\Cluster\\PredisStrategy', $cluster->getClusterStrategy());
 }