yii\redis\Connection::getIsActive PHP Method

getIsActive() public method

Returns a value indicating whether the DB connection is established.
public getIsActive ( ) : boolean
return boolean whether the DB connection is established
    public function getIsActive()
    {
        return $this->_socket !== false;
    }