clear method

void clear()

Evicts all completed entries and invalidates pending loads.

This is useful if, for instance, the root asset bundle has been updated and therefore new images must be obtained.

Implementation

void clear() {
  _pending.clear();
  _cache.clear();
  _currentByteSize = 0;
}