RealtimeCachePolicy class

Cache policy and memory limits for MongoRealtime cache.

Constructors

RealtimeCachePolicy({int? maxDocumentsPerCollection = 500, bool persistToStorage = true})
const
RealtimeCachePolicy.unlimited()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxDocumentsPerCollection → int?
Maximum number of documents retained in RAM per collection. When exceeded, unreferenced documents are evicted in LRU order.
final
persistToStorage → bool
Whether to write cached documents to the RealtimeStorageAdapter.
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.
inherited

Operators

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