MemoryCacheSettings
class MemoryCacheSettings : LocalCacheSettings
Configures the SDK to use a memory cache. Firestore documents and mutations are NOT persisted across App restart.
To use, create an instance using newBuilder, then set the instance to setLocalCacheSettings, and use the built FirebaseFirestoreSettings instance to configure the Firestore SDK.
Summary
Nested types |
|---|
|
A Builder for creating |
Public functions |
|
|---|---|
Boolean |
|
MemoryGarbageCollectorSettings |
Returns the |
Int |
hashCode() |
java-static MemoryCacheSettings.Builder |
Returns a new instance of |
String! |
toString() |
Public functions
getGarbageCollectorSettings
fun getGarbageCollectorSettings(): MemoryGarbageCollectorSettings
Returns the MemoryGarbageCollectorSettings object used to configure the SDK cache.
newBuilder
java-static fun newBuilder(): MemoryCacheSettings.Builder
Returns a new instance of MemoryCacheSettings.Builder with default configurations.