def _get_redis_connection():
url = current_app.config.get('<STR_LIT>', '<STR_LIT>')<EOL>return redis.from_url(url, decode_responses=True)<EOL>
Return a Redis connection based on the Flask application's configuration.

The connection parameters are retrieved from `REDIS_URL` configuration
variable.

:return: an instance of :class:`redis.Connection`