MemoryEagerGCSetting
class MemoryEagerGCSetting : NSObject, NSCopying, MemoryGarbageCollectorSettings
Configures the SDK to use an eager garbage collector for memory cache.
Once configured, the SDK will remove any Firestore documents from memory as soon as they are not used by any active queries.
To use, create an instance using the initializer, then initialize
MemoryCacheSettings
with this instance. This is the default garbage collector, so alternatively
you can use the default initializer of MemoryCacheSettings
.
-
Creates an instance of
MemoryEagerGCSettings
.Declaration
Swift
init()