addFailed method

void addFailed(
  1. CacheEntry cacheEntry
)

The addFailed method is called to add a failed key to the requested keys list.

The cacheEntry is the cache entry.

Implementation

void addFailed(CacheEntry cacheEntry) {
  if (failedKeys.indexWhere((e) => e.cacheKey == cacheEntry.cacheKey) == -1) {
    failedKeys.add(cacheEntry);
  }
}