public function __construct($settings = [])
{
// check Redis extension
if (!extension_loaded('redis')) {
throw new ComponentException("Redis extension not installed/enabled.\n Install and/or enable Redis extension [http://pecl.php.net/package/redis].\n See phpinfo() for more information");
}
// check Redis settings
if (!is_array($settings) || empty($settings)) {
throw new ConfigurationException("Redis configuration is missed. Please check 'cache' configuration section");
}
parent::__construct($settings);
}