clearAllCaches method

Future<void> clearAllCaches()

Clears all caches

Implementation

Future<void> clearAllCaches() async {
  _primaryCache.clear();
  _secondaryCache.clear();
  _tertiaryCache.clear();
  _usageStats.clear();

  await _sharedPreferences.remove(_primaryCacheKey);
  await _sharedPreferences.remove(_secondaryCacheKey);
  await _sharedPreferences.remove(_tertiaryCacheKey);
  await _sharedPreferences.remove(_cacheStatsKey);
}