def flush_key(obj):
    key = obj if isinstance(obj, six.string_types) else obj.get_cache_key(incl_db=False)
    return config.FLUSH + make_key(key, with_locale=False)
We put flush lists in the flush: namespace.
dataset/ETHPy150Open django-cache-machine/django-cache-machine/caching/invalidation.py/flush_key