TF-524 Clean up recent search cache

This commit is contained in:
dab246
2022-05-24 13:24:00 +07:00
committed by Dat H. Pham
parent 11c9a8713a
commit 81eca6c59a
20 changed files with 203 additions and 53 deletions
@@ -30,7 +30,12 @@ class RecentSearchCacheClient extends HiveCacheClient<RecentSearchCache> {
@override
Future<void> deleteMultipleItem(List<String> listKey) {
throw UnimplementedError();
return Future.sync(() async {
final boxEmail = await openBox();
return boxEmail.deleteAll(listKey);
}).catchError((error) {
throw error;
});
}
@override