evictAll method
Deletes all stored values from the cache. In-flight edits will complete normally but their values will not be stored.
Implementation
Future<void> evictAll() => _lock.synchronized(() async {
await _initialize();
// Copying for concurrent iteration.
for (final entry in _lruEntries.values) {
await _removeEntry(entry);
}
_mostRecentTrimFailed = false;
});