Use Hive CE database to replace Hive database

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-06-18 00:57:30 +07:00
committed by Dat H. Pham
parent 23019ae030
commit 45cd1c3613
35 changed files with 163 additions and 81 deletions
-17
View File
@@ -87,23 +87,6 @@ class CachingManager {
], eagerError: true);
}
Future<void> clearData() async {
await Future.wait([
_stateCacheClient.clearAllData(),
_mailboxCacheClient.clearAllData(),
_emailCacheClient.clearAllData(),
_fcmCacheClient.clearAllData(),
_firebaseRegistrationCacheClient.clearAllData(),
_localSpamReportManager.clear(),
if (PlatformInfo.isMobile)
...[
_newEmailHiveCacheClient.clearAllData(),
_openedEmailHiveCacheClient.clearAllData(),
_sendingEmailCacheManager.clearAllSendingEmails(),
]
], eagerError: true);
}
Future<void> clearEmailAndStateCache({AccountId? accountId, UserName? userName}) {
log('CachingManager::clearEmailAndStateCache:userName = $userName');
if (accountId != null && userName != null) {