'Retrieves a key from a cache scoped to the thread'

def get_key_from_cache(self, key):

    if hasattr(self.current_request_configuration, 'cache'):
        return self.current_request_configuration.cache.get(key)
