FIRMemoryCacheSettings
@interface FIRMemoryCacheSettings : NSObject <NSCopying, FIRLocalCacheSettings>
Configures 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
Objective-C
- (nonnull instancetype)init;
-
Creates an instance of
MemoryCacheSettings
with givenMemoryGarbageCollectorSettings
to custom the garbage collector.Declaration
Objective-C
- (nonnull instancetype)initWithGarbageCollectorSettings: (nonnull id<FIRMemoryGarbageCollectorSettings, NSObject>)settings;