removeAll method

  1. @override
Future<int> removeAll(
  1. List<String> keys
)
override

Removes multiple values from the cache.

keys - List of identifiers to remove

Returns the number of elements successfully removed

Implementation

@override
Future<int> removeAll(List<String> keys) async {
  await _ensureInitialized();

  int removedCount = 0;
  for (final key in keys) {
    if (await remove(key)) {
      removedCount++;
    }
  }
  return removedCount;
}