def region_invalidate(namespace, region, *args):
 if callable(namespace):
  if (not region):
   region = namespace._arg_region
  namespace = namespace._arg_namespace
 if (not region):
  raise BeakerException('Region or callable function namespace is required')
 else:
  region = cache_regions[region]
 cache = Cache._get_cache(namespace, region)
 cache_key = ' '.join((str(x) for x in args))
 cache.remove_value(cache_key)

def region_invalidate ( namespace , region , * args ) : if callable ( namespace ) : if ( not region ) : region = namespace . _arg_region namespace = namespace . _arg_namespace if ( not region ) : raise BeakerException ( 'Region or callable function namespace is required' ) else : region = cache_regions [ region ] cache = Cache . _get_cache ( namespace , region ) cache_key = ' ' . join ( ( str ( x ) for x in args ) ) cache . remove_value ( cache_key )
invalidate a cache region namespace or decorated function this function only invalidates cache spaces created with the cache_region decorator .