Phalcon\Annotations\Adapter\Redis::__construct PHP Method

__construct() public method

public __construct ( array $options = [] )
$options array Options array
    public function __construct(array $options = [])
    {
        if (!isset($options['host'])) {
            $options['host'] = '127.0.0.1';
        }
        if (!isset($options['port'])) {
            $options['port'] = 6379;
        }
        if (!isset($options['persistent'])) {
            $options['persistent'] = false;
        }
        parent::__construct($options);
        $this->redis = new BackendRedis(new FrontendData(['lifetime' => $this->options['lifetime']]), $options);
    }