CacheSynchronizer class
A class that handles synchronization between different cache instances.
Constructors
- CacheSynchronizer.new(DataCacheX _primaryCache)
- Creates a new instance of CacheSynchronizer.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
syncEvents
→ Stream<
CacheSyncEvent> -
Gets the stream of sync events.
no setter
Methods
-
dispose(
) → void - Disposes the synchronizer.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
syncWith(
DataCacheX remoteCache, {Set< String> ? keys, CachePolicy? policy, bool bidirectional = false, ConflictResolution conflictResolution = ConflictResolution.newerWins}) → Future<void> - Synchronizes the primary cache with the given remote cache.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited