mirror of
https://github.com/immich-app/immich.git
synced 2025-06-04 06:04:21 -04:00
18 lines
383 B
Dart
18 lines
383 B
Dart
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();
|
|
}
|