This commit is contained in:
shenlong-tanwen
2024-04-25 00:53:18 +05:30
parent 4ef7eb56a3
commit 11cef4ec9a
305 changed files with 47185 additions and 4 deletions
@@ -0,0 +1,17 @@
import 'dart:async';
import 'package:immich_mobile/domain/models/store.model.dart';
abstract class IStoreRepository {
FutureOr<T?> getValue<T>(StoreKey key);
FutureOr<void> setValue<T>(StoreKey<T> key, T value);
FutureOr<void> deleteValue(StoreKey key);
Stream<T?> watchValue<T>(StoreKey key);
Stream<List<StoreValue>> watchStore();
FutureOr<void> clearStore();
}