Predis\Cluster\RedisStrategy::__construct PHP Method

__construct() public method

public __construct ( Predis\Cluster\Hash\HashGeneratorInterface $hashGenerator = null )
$hashGenerator Predis\Cluster\Hash\HashGeneratorInterface Hash generator instance.
    public function __construct(HashGeneratorInterface $hashGenerator = null)
    {
        parent::__construct();
        $this->hashGenerator = $hashGenerator ?: new CRC16();
    }