

def invalidate(self, *raw_args, **raw_kwargs):
    '\n        Mark a cached item invalid and trigger an asynchronous\n        job to refresh the cache\n        '
    args = self.prepare_args(*raw_args)
    kwargs = self.prepare_kwargs(**raw_kwargs)
    key = self.key(*args, **kwargs)
    item = self.cache.get(key)
    if (item is not None):
        (expiry, data) = item
        self.cache_set(key, self.timeout(*args, **kwargs), data)
        self.async_refresh(*args, **kwargs)

dataset/ETHPy150Open codeinthehole/django-cacheback/cacheback/base.py Job.invalidate/original