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