/** * Creates the default cluster strategy object. * * @return StrategyInterface */ protected function getClusterStrategy() { $strategy = new PredisStrategy(); $connection = $this->getMock('Predis\\Connection\\NodeConnectionInterface'); $strategy->getDistributor()->add($connection); return $strategy; }