clear method
void
clear()
Clears the cache. Cancels any ongoing cleaning operations. Resets the current size to 0. Resets the cache to an empty state.
Implementation
void clear() {
_stopCleaningIfNeeded();
_currentSize = 0;
_cache.clear();
}