MemoryCacheSettings class final

Configures an in memory cache, which is lost when the instance is shut down. The memory cache is garbage collected as configured by gcSettings.

Writes that the backend has not acknowledged when the instance is terminated are lost with it.

final Settings settings = Settings(
  cacheSettings: const MemoryCacheSettings(),
);
Inheritance

Constructors

MemoryCacheSettings({MemoryGarbageCollectorSettings gcSettings = const MemoryEagerGcSettings(), bool mergeUnsentWrites = false})
Creates the settings, by default with eager garbage collection and without merging writes.
const

Properties

gcSettings → MemoryGarbageCollectorSettings
The garbage collector of the memory cache.
final
hashCode → int
The hash code for this object.
no setteroverride
mergeUnsentWrites → bool
Not in the official SDKs: a supported opt-in extension that differs from them. Whether a write to a document whose previous write is still pending and was not sent yet replaces that write with one merged write. Off by default. The conditions and what the app gives up are those of PersistentCacheSettings.mergeUnsentWrites.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

operator ==(Object other) → bool
The equality operator.
override