def invalidate(*args, **kwargs): ''' invalidates cache result for function called with passed arguments ''' if not hasattr(func_helper, '_full_name'): return key = func_helper.build_wrapped_cache_key_with_generations(args, kwargs) raw_cache.delete(key) if in_gen_cache_debug_mode(): logging.info('Invalidating key: %s' % key)
def delete(self, *generations, **kwargs): key = self.build_key(*generations, **kwargs) raw_cache.delete(key) if in_gen_cache_debug_mode(): logging.debug("gen_cache.remove: %s " % (key))