'Stores a key value pair in a cache scoped to the thread'

def set_key_to_cache(self, key, value):

    if hasattr(self.current_request_configuration, 'cache'):
        self.current_request_configuration.cache[key] = value
