public function __construct(array $options)
{
if (!isset($options['redis'])) {
throw new Exception("Parameter 'redis' is required");
}
if (!isset($options['language'])) {
throw new Exception("Parameter 'language' is required");
}
$this->redis = $options['redis'];
$this->language = $options['language'];
if (isset($options['levels'])) {
$this->levels = $options['levels'];
}
}