clearCache method
Clears all cached entries.
Returns the number of entries removed — expired ones included, which it used to under-report because CacheStorage.keys swept them on its way past.
Implementation
Future<int> clearCache() async {
final allKeys = await config.storage.keys();
final count = allKeys.length;
await config.storage.clear();
return count;
}