clear method

  1. @override
void clear()
override

Clears all entries from the cache.

This operation should be atomic if possible.

Implementation

@override
void clear() {
  _cache.clear();
  _accessOrder.clear();
}