def _cache_decorator_invalidate(cache, key_length, args):

    try:
        cache_key = " ".join(map(str, args))
    except UnicodeEncodeError:
        cache_key = " ".join(map(unicode, args))
    if len(cache_key) + len(cache.namespace_name) > key_length:
        if util.py3k:
            cache_key = cache_key.encode('utf-8')
        cache_key = sha1(cache_key).hexdigest()
    cache.remove_value(cache_key)
"If a CNAME RR is preent at a node, no other data should be
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/beaker/cache.py/_cache_decorator_invalidate--crossover with--dataset/ETHPy150Open rtucker-mozilla/mozilla_inventory/mozdns/models.py/MozdnsRecord.check_for_cname