TF-1217 Register cache adapter

This commit is contained in:
dab246
2022-11-23 15:07:35 +07:00
committed by Dat H. Pham
parent 5ed8e85c66
commit ad8ef6b608
3 changed files with 80 additions and 22 deletions
@@ -15,8 +15,9 @@ abstract class HiveCacheClient<T> {
Future<Box<T>> openBox() async {
if (Hive.isBoxOpen(tableName)) {
return Hive.box<T>(tableName);
} else {
return Hive.openBox<T>(tableName);
}
return Hive.openBox<T>(tableName);
}
Future<Box<T>> openBoxEncryption() async {