MemoryCacheSettings
class MemoryCacheSettings : NSObject, NSCopying, LocalCacheSettingsConfigures the SDK to use a memory cache. Firestore documents and mutations are NOT persisted across App restart.
To use, create an instance using one of the initializer, then set the instance to
FirestoreSettings.cacheSettings, and use FirestoreSettings instance to configure Firestore
SDK.
-
Creates an instance of
MemoryCacheSettings.Declaration
Swift
init() -
Creates an instance of
MemoryCacheSettingswith givenMemoryGarbageCollectorSettingsto custom the garbage collector.Declaration
Swift
init(garbageCollectorSettings settings: any NSObjectProtocol & MemoryGarbageCollectorSettings)