MemoryStoreCapabilities class final
What a store backend can actually guarantee.
The runtime reads these before relying on a behavior. An
application can warn instead of assuming: a store without
crossProcessCas only protects writers inside this process, and a
store without nativeTtl still enforces expiry through the
runtime's read-side filter.
Constructors
- MemoryStoreCapabilities({bool crossProcessCas = false, bool serverClock = false, bool nativeTtl = false, MemoryWritePolicy? recommendedPolicy})
-
Creates a capability declaration.
const
Properties
- crossProcessCas → bool
-
Whether compare-and-swap survives concurrent processes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- nativeTtl → bool
-
Whether the backend itself drops expired rows, rather than the
runtime filtering them on read.
final
- recommendedPolicy → MemoryWritePolicy?
-
A store-recommended write policy, when the backend has a
preferred cadence (for example a Firestore backend that
recommends debouncing). Null means the default policy is fine.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverClock → bool
-
Whether the backend supplies its own commit clock (a server-side
timestamp), rather than trusting the writer's clock.
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