Skip to main content

FanoutCache.evict()

Remove every entry tagged tag that existed when the call started, from every shard, as

Usage

Source

FanoutCache.evict(
    tag,
    *,
    timeout=None,
    retry=False,
)

Parameters

tag: Key

The tag.

timeout: float | None = None

As for expire: one budget for the whole call.

retry: bool = False
On a Timeout, try again until the call gets through, each round with the whole timeout, a durable=True handle included. Only Timeout is retried.

Returns

int
How many entries were removed.

Raises

TypeError

tag isn’t a key type.

Timeout
As for expire, with removed and failed_shards.