MemoryCacheSettings

public final class MemoryCacheSettings implements 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 methods

boolean
@NonNull MemoryGarbageCollectorSettings

Returns the MemoryGarbageCollectorSettings object used to configure the SDK cache.

int
static @NonNull MemoryCacheSettings.Builder

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

String

Public methods

equals

public boolean equals(@Nullable Object obj)

getGarbageCollectorSettings

public @NonNull MemoryGarbageCollectorSettings getGarbageCollectorSettings()

Returns the MemoryGarbageCollectorSettings object used to configure the SDK cache.

hashCode

public int hashCode()

newBuilder

public static @NonNull MemoryCacheSettings.Builder newBuilder()

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

toString

public String toString()