clear method

  1. @override
void clear()
override

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);
  }
}