clearAll method

DataLoader<K, V, C> clearAll()

Clears the entire cache. To be used when some event results in unknown invalidations across this particular DataLoader. Returns itself for method chaining.

Implementation

DataLoader<K, V, C> clearAll() {
  final cacheMap = this._cacheMap;
  if (cacheMap != null) {
    cacheMap.clear();
  }
  return this;
}