def METHOD_NAME():
    """
    Retrieve the URL needed to connect to a Redis instance, depending on environment.
    When running in a cloud.gov environment, retrieve the uri credential for the 'aws-elasticache-redis' service.
    """
    # Is the app running in a cloud.gov environment
    if env.space is not None:
        redis_env = env.get_service(label="aws-elasticache-redis")
        METHOD_NAME = redis_env.credentials.get("uri")
        return METHOD_NAME
    return env.get_credential("FEC_REDIS_URL", "redis://localhost:6379/0")