clearCache method

Future<int> clearCache()

Clears all cached entries.

Returns the number of entries removed.

Implementation

Future<int> clearCache() async {
  final allKeys = await config.storage.keys();
  final count = allKeys.length;
  await config.storage.clear();
  return count;
}