public function getConnection()
	{
		if ($this->_connection === null) {
			if (!isset(Yii::$app->redis)) {
				throw new InvalidConfigException(get_class($this)." expects a 'redis' application component");
			}
			$this->_connection = Yii::$app->redis;
		}
		return $this->_connection;
	}
public function getConnection()
	{
		if ($this->_connection === null) {
			if (!isset(Yii::$app->redis)) {
				throw new InvalidConfigException(get_class($this)." expects a 'redis' application component");
			}
			$this->_connection = Yii::$app->redis;
		}
		return $this->_connection;
	}
public function getConnection ( ) { if ( $ this -> _connection === null ) { if ( ! isset ( Yii :: $ app -> redis ) ) { throw new InvalidConfigException ( get_class ( $ this ) . " expects a 'redis' application component" ) ; } $ this -> _connection = Yii :: $ app -> redis ; } return $ this -> _connection ; }
Gets the redis connection to use for this entity
@return ARedisConnection
Gets the redis connection to use for this entity