AggregateStateStorageSettings class

Constructors

AggregateStateStorageSettings({Duration ttl = TTL, bool eager = false, bool useCache = false, int threshold = 1000})
Construct an AggregateStateStorageSettings instance
const

Properties

eager bool
If true a snapshot is made on first AggregateStateSnapshotStore.save
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
threshold int
Maximum number state versions applied between each snapshot
final
ttl Duration
Time to live in memory
final
useCache bool
If true state is cached in memory on save
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

Default → const AggregateStateStorageSettings
Default settings
TTL → const Duration
Default time-to-live is one day