Sweep
Clears room, and only when there is no room left.
func (store *Store) Sweep(ctx context.Context) (SweepReport, error)- Memories past their expiry go cold.
- Static memories beyond
StaticShareofCapacitylose the static flag, weakest first. They stay in the store. - While live memories exceed
Capacity, the least useful origins go cold together. An origin that holds a static memory within its quota is left alone. - While stored memories exceed
Capacity, cold memories older thanColdGraceare deleted: superseded first, then expired, then pressure, least useful first within each. - Tombstones beyond
TombstoneCapacityare pruned, oldest first.
A sweep with headroom deletes nothing, however old or cold its memories are. Deleting when there is room is pure loss.