clearAll method
Clear all caches (useful for logout scenarios)
Implementation
Future<void> clearAll() async {
final futures = <Future<void>>[];
if (_memoryCache != null) {
futures.add(_memoryCache!.clear());
}
if (_persistentCache != null) {
futures.add(_persistentCache!.clear());
}
if (_apiCache != null) {
futures.add(_apiCache!.clear());
}
if (_userDataCache != null) {
futures.add(_userDataCache!.clear());
}
await Future.wait(futures);
}