clear method
Remove everything from cache.
Setting rebuildDb
to true
will clean up the SQL database and free up
the space.
Implementation
Future<void> clear({bool rebuildDb = false}) async {
if (config.useMemCache) _memCache.clear();
await dataStore.clear(rebuildDb: rebuildDb);
}