mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
18 lines
407 B
Dart
18 lines
407 B
Dart
|
|
import 'package:immich_mobile/entities/store.entity.dart';
|
||
|
|
|
||
|
|
abstract interface class IStoreRepository {
|
||
|
|
Future<bool> insert<T>(StoreKey<T> key, T value);
|
||
|
|
|
||
|
|
Future<T?> tryGet<T>(StoreKey<T> key);
|
||
|
|
|
||
|
|
Stream<T?> watch<T>(StoreKey<T> key);
|
||
|
|
|
||
|
|
Stream<StoreUpdateEvent> watchAll();
|
||
|
|
|
||
|
|
Future<bool> update<T>(StoreKey<T> key, T value);
|
||
|
|
|
||
|
|
Future<void> delete<T>(StoreKey<T> key);
|
||
|
|
|
||
|
|
Future<void> deleteAll();
|
||
|
|
}
|