public function setConnection($connection)
	{
		if (is_string($connection)) {
			$connection = Yii::$app->{$connection};
		}
		$this->_connection = $connection;
	}
public function setConnection($connection)
	{
		if (is_string($connection)) {
			$connection = Yii::$app->{$connection};
		}
		$this->_connection = $connection;
	}
public function setConnection ( $ connection ) { if ( is_string ( $ connection ) ) { $ connection = Yii :: $ app -> { $ connection } ; } $ this -> _connection = $ connection ; }
Sets the redis connection to use for this entity
@param ARedisConnection|string $connection the redis connection, if a string is provided, it is presumed to be a the name of an applciation component
Sets the redis connection to use for this entity