MemoryLruGcSettings class final
Least recently used garbage collection: the memory cache is collected once it exceeds sizeBytes, starting with the least recently used data.
Unlike eager collection, documents stay in the cache after their last listener stopped, so a later read or listener can be answered from the cache while offline.
final Settings settings = Settings(
cacheSettings: MemoryCacheSettings(
gcSettings: MemoryLruGcSettings(sizeBytes: 10 * 1024 * 1024),
),
);
- Inheritance
-
- Object
- MemoryGarbageCollectorSettings
- MemoryLruGcSettings
Constructors
- MemoryLruGcSettings({int sizeBytes = Settings.defaultCacheSizeBytes})
-
sizeBytesis an approximate threshold, see PersistentCacheSettings.sizeBytes for the accepted values.
Properties
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