pub fn cache_sweep(
db: &DatabaseDriver,
budget_bytes: i64,
) -> Result<EvictionReport, Error>Expand description
Reclaim cached representations until the reclaimable set fits within budget_bytes. Deletes
each evicted representation’s cache file from disk and removes its index row. A cache file that
is already gone is treated as reclaimed (not an error) and its stale row is still dropped.
Pinned and device-owned originals are never evicted by this automatic path; canonical media/
files are never candidates (they are not tracked in cached_representations).