Evicts the least-recently-cached records until the "layers" store fits within
maxBytes. No-op (returns a zeroed result) when db is missing, maxBytes is
not a positive finite number, or the cache already fits the budget.
LRU is approximated by the timestamp set at cache time (least recent =
oldest), so the most recently downloaded tiles survive an over-budget pass.
Evicts the least-recently-cached records until the "layers" store fits within
maxBytes. No-op (returns a zeroed result) whendbis missing,maxBytesis not a positive finite number, or the cache already fits the budget.LRU is approximated by the
timestampset at cache time (least recent = oldest), so the most recently downloaded tiles survive an over-budget pass.