## Cache.cull() Remove expired entries, then evict the least recently stored until under [size_limit](Cache.size_limit.md#diskcache_oxide.Cache.size_limit). Usage ``` python Cache.cull( *, timeout=None, retry=False, ) ``` ## Parameters `timeout: Optional[float] = None` Seconds each chunk may wait for the write lock (another thread's or another process's), for this call only (default: the cache's [timeout](Cache.timeout.md#diskcache_oxide.Cache.timeout)). It bounds each wait, not the whole call. `retry: bool = ``False` On a [Timeout](Timeout.md#diskcache_oxide.Timeout), try again until the call gets through, each round with the whole [timeout](Cache.timeout.md#diskcache_oxide.Cache.timeout), a `durable=True` handle included. Only [Timeout](Timeout.md#diskcache_oxide.Timeout) is retried. ## Returns `int` How many entries were removed.