Skip to content

Commit

Permalink
TransactionalStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 committed Oct 4, 2023
1 parent 9174138 commit f213244
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/rx_storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ library rx_storage;
export 'src/impl/real_storage.dart';
export 'src/interface/rx_storage.dart';
export 'src/interface/storage.dart';
export 'src/interface/transactionally_storage.dart';
export 'src/interface/transactional_storage.dart';
export 'src/logger/default_logger.dart';
export 'src/logger/empty_logger.dart';
export 'src/logger/event.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/impl/real_storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import '../async/async_memoizer.dart';
import '../async/async_queue.dart';
import '../interface/rx_storage.dart';
import '../interface/storage.dart';
import '../interface/transactionally_storage.dart';
import '../interface/transactional_storage.dart';
import '../logger/event.dart';
import '../logger/logger.dart';
import '../model/error.dart';
Expand Down
4 changes: 2 additions & 2 deletions lib/src/interface/rx_storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import 'package:meta/meta.dart';
import '../impl/real_storage.dart';
import '../logger/logger.dart';
import 'storage.dart';
import 'transactionally_storage.dart';
import 'transactional_storage.dart';

/// Get [Stream]s by key from persistent storage.
abstract class RxStorage<Key extends Object, Options>
implements TransactionallyStorage<Key, Options> {
implements TransactionalStorage<Key, Options> {
/// Constructs a [RxStorage] by wrapping a [Storage].
factory RxStorage(
FutureOr<Storage<Key, Options>> storageOrFuture, [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ typedef Transformer<T> = FutureOr<T> Function(T);

/// A persistent store for simple data.
/// Data is persisted to disk asynchronously and transactionally.
abstract class TransactionallyStorage<Key extends Object, Options>
abstract class TransactionalStorage<Key extends Object, Options>
implements Storage<Key, Options> {
/// `Read–modify–write`.
///
Expand Down

0 comments on commit f213244

Please sign in to comment.