clear method

  1. @override
Future<void> clear()
override

Removes all entries from the cache.

This method delegates to trimToSize with a size of -1, which should clear the cache completely.

Implementation

@override
Future<void> clear() {
  return trimToSize(-1);
}