clear method
Removes all keys and values from the cache.
Implementation
@override
void clear() {
final keys = _entries.keys.toList();
for (final key in keys) {
removeEntry(key, EvictionReason.removed);
}
}
Removes all keys and values from the cache.
@override
void clear() {
final keys = _entries.keys.toList();
for (final key in keys) {
removeEntry(key, EvictionReason.removed);
}
}