evictIfNeededThrottled static method
Throttled eviction to avoid scanning too often.
Implementation
static Future<void> evictIfNeededThrottled() async {
if (_evictionInProgress) return;
final now = DateTime.now();
if (now.difference(_lastEviction) < _minEvictionInterval) return;
_evictionInProgress = true;
try {
await evictIfNeeded();
} finally {
_lastEviction = DateTime.now();
_evictionInProgress = false;
}
}