Bluz\Cache\Adapter\Redis::__construct PHP Method

__construct() public method

Check and setup Redis server
public __construct ( array $settings = [] )
$settings array
    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);
    }