Author: Daniele Alessandri (suppakilla@gmail.com)
Inheritance: implements Predis\Cluster\StrategyInterface
Ejemplo n.º 1
0
 /**
  * @param HashGeneratorInterface $hashGenerator Hash generator instance.
  */
 public function __construct(HashGeneratorInterface $hashGenerator = null)
 {
     parent::__construct();
     $this->hashGenerator = $hashGenerator ?: new CRC16();
 }
Ejemplo n.º 2
0
 /**
  * @param DistributorInterface $distributor Optional distributor instance.
  */
 public function __construct(DistributorInterface $distributor = null)
 {
     parent::__construct();
     $this->distributor = $distributor ?: new HashRing();
 }