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