yii\redis\Cache::init PHP 메소드

init() 공개 메소드

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());
    }