This field is deprecated. Use cacheSettings instead.
NOTE: This field will be deprecated in a future major release. Use the cacheSettings field
instead to specify cache type, and other cache configurations.
This field is deprecated. Use cacheSettings instead.
NOTE: This field will be deprecated in a future major release. Use the cacheSettings field
instead to specify cache size, and other cache configurations.
Sets the cache size threshold above which the SDK will attempt to collect least-recently-used
documents. The size is not a guarantee that the cache will stay below that size, only that if
the cache exceeds the given size, cleanup will be attempted. Cannot be set lower than 1MB.
NOTE: setting this field and cacheSizeBytes or persistenceEnabled at the same time will throw
an exception during SDK initialization. Instead, use the configuration in
the PersistentCacheSettings object to specify the cache size.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-11 UTC."],[],[],null,["FirestoreSettings \n\n class FirestoreSettings : NSObject, NSCopying\n\nSettings used to configure a [Firestore](../Classes/Firestore.html) instance.\n- `\n ``\n ``\n `\n\n [init()](#/c:objc(cs)FIRFirestoreSettings(im)init)`\n ` \n Creates and returns an empty `FirestoreSettings` object. \n\n Declaration \n Swift \n\n init()\n\n Return Value\n\n The created `FirestoreSettings` object.\n- `\n ``\n ``\n `\n\n [host](#/c:objc(cs)FIRFirestoreSettings(py)host)`\n ` \n The hostname to connect to. \n\n Declaration \n Swift \n\n var host: String { get set }\n\n- `\n ``\n ``\n `\n\n [isSSLEnabled](#/c:objc(cs)FIRFirestoreSettings(py)sslEnabled)`\n ` \n Whether to use SSL when connecting. \n\n Declaration \n Swift \n\n var isSSLEnabled: Bool { get set }\n\n- `\n ``\n ``\n `\n\n [dispatchQueue](#/c:objc(cs)FIRFirestoreSettings(py)dispatchQueue)`\n ` \n A dispatch queue to be used to execute all completion handlers and event handlers. By default,\n the main queue is used. \n\n Declaration \n Swift \n\n var dispatchQueue: dispatch_queue_t { get set }\n\n- `\n ``\n ``\n `\n\n [isPersistenceEnabled](#/c:objc(cs)FIRFirestoreSettings(py)persistenceEnabled)`\n ` \n Deprecated\n\n This field is deprecated. Use [cacheSettings](../Classes/FirestoreSettings.html#/c:objc(cs)FIRFirestoreSettings(py)cacheSettings) instead. \n NOTE: This field will be deprecated in a future major release. Use the [cacheSettings](../Classes/FirestoreSettings.html#/c:objc(cs)FIRFirestoreSettings(py)cacheSettings) field\n instead to specify cache type, and other cache configurations.\n\n Set to false to disable local persistent storage. \n\n Declaration \n Swift \n\n var isPersistenceEnabled: Bool { get set }\n\n- `\n ``\n ``\n `\n\n [cacheSizeBytes](#/c:objc(cs)FIRFirestoreSettings(py)cacheSizeBytes)`\n ` \n Deprecated\n\n This field is deprecated. Use [cacheSettings](../Classes/FirestoreSettings.html#/c:objc(cs)FIRFirestoreSettings(py)cacheSettings) instead. \n NOTE: This field will be deprecated in a future major release. Use the [cacheSettings](../Classes/FirestoreSettings.html#/c:objc(cs)FIRFirestoreSettings(py)cacheSettings) field\n instead to specify cache size, and other cache configurations.\n\n Sets the cache size threshold above which the SDK will attempt to collect least-recently-used\n documents. The size is not a guarantee that the cache will stay below that size, only that if\n the cache exceeds the given size, cleanup will be attempted. Cannot be set lower than 1MB.\n\n Set to [FirestoreCacheSizeUnlimited](../Constants.html#/c:@kFIRFirestoreCacheSizeUnlimited) to disable garbage collection entirely. \n\n Declaration \n Swift \n\n var cacheSizeBytes: Int64 { get set }\n\n- `\n ``\n ``\n `\n\n [cacheSettings](#/c:objc(cs)FIRFirestoreSettings(py)cacheSettings)`\n ` \n Specifies the cache used by the SDK. Available options are [PersistentCacheSettings](../Classes/PersistentCacheSettings.html)\n and [MemoryCacheSettings](../Classes/MemoryCacheSettings.html), each with different configuration options.\n\n When unspecified, [PersistentCacheSettings](../Classes/PersistentCacheSettings.html) will be used by default.\n\n NOTE: setting this field and [cacheSizeBytes](../Classes/FirestoreSettings.html#/c:objc(cs)FIRFirestoreSettings(py)cacheSizeBytes) or `persistenceEnabled` at the same time will throw\n an exception during SDK initialization. Instead, use the configuration in\n the [PersistentCacheSettings](../Classes/PersistentCacheSettings.html) object to specify the cache size. \n\n Declaration \n Swift \n\n var cacheSettings: any NSObjectProtocol & FIRLocalCacheSettings { get set }"]]