TF-3507 Fix offline cache prevents updating email query view cache

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-04-03 14:43:31 +07:00
committed by Dat H. Pham
parent c6bb268a75
commit 712bc26402
29 changed files with 662 additions and 131 deletions
@@ -25,5 +25,10 @@ class StateCacheManager {
return await _stateCacheClient.insertItem(stateKey, stateCache);
}
Future<void> deleteState(AccountId accountId, UserName userName, StateType stateType) async {
final stateKey = TupleKey(stateType.name, accountId.asString, userName.value).encodeKey;
return await _stateCacheClient.deleteItem(stateKey);
}
Future<void> closeStateHiveCacheBox() => _stateCacheClient.closeBox();
}