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 MemoryCacheSettings instance.

Public functions

Boolean
equals(obj: Any?)
MemoryGarbageCollectorSettings

Returns the MemoryGarbageCollectorSettings object used to configure the SDK cache.

Int
java-static MemoryCacheSettings.Builder

Returns a new instance of MemoryCacheSettings.Builder with default configurations.

String!

Public functions

equals

fun equals(obj: Any?): Boolean

getGarbageCollectorSettings

fun getGarbageCollectorSettings(): MemoryGarbageCollectorSettings

Returns the MemoryGarbageCollectorSettings object used to configure the SDK cache.

hashCode

fun hashCode(): Int

newBuilder

java-static fun newBuilder(): MemoryCacheSettings.Builder

Returns a new instance of MemoryCacheSettings.Builder with default configurations.

toString

fun toString(): String!