protected function getConnectionInitializerByDescription(OptionsInterface $options, $description)
{
if ($description === 'predis') {
$callback = $this->getDefault($options);
} elseif ($description === 'redis') {
$callback = function ($options) {
return new RedisCluster($options->connections, new RedisStrategy($options->crc16));
};
} else {
throw new \InvalidArgumentException('String value for the cluster option must be either `predis` or `redis`');
}
return $this->getConnectionInitializer($options, $callback);
}