Skip to main content

FanoutCache.cull()

Remove expired entries, then evict the least recently stored from each shard until it’s

Usage

Source

FanoutCache.cull(
    *,
    timeout=None,
)

under its share of size_limit.

Parameters

timeout: float | None = None
As for expire: one budget for the whole call.

Returns

int
How many entries were removed.

Raises

Timeout
As for expire, with removed and failed_shards.