yii\redis\Cache::init PHP Méthode

init() public méthode

This method will initialize the [[redis]] property to make sure it refers to a valid redis connection.
public init ( )
    public function init()
    {
        parent::init();
        $this->redis = Instance::ensure($this->redis, Connection::className());
    }