def get_cache_key():
    # TODO: This is ugly use of exceptions; is there a better way to track whether in a given type of request?
    try:
        return request._get_current_object()
    except RuntimeError:  # Not in a flask request context
        if getattr(api_globals, 'request', None) is not None:
            return api_globals.request
        else:  # Not in a Django request
            return dummy_request
return host, port, URI, and reactor instance
dataset/ETHPy150Open CenterForOpenScience/osf.io/framework/mongo/__init__.py/get_cache_key--crossover with--dataset/ETHPy150Open emccode/heliosburn/heliosburn/proxy/protocols/http.py/HBReverseProxyResource.getChild