MemoryLruGcSettings

classMemoryLruGcSettings :MemoryGarbageCollectorSettings


Configures the SDK to use a Least-Recently-Used garbage collector for memory cache.

To use, create an instance usingMemoryLruGcSettings#newBuilder().build(), then set the instance toMemoryCacheSettings.Builder#setGcSettings, and use the builtMemoryCacheSettings instance to configure the Firestore SDK.

Summary

Public functions

Boolean
equals(o: Any!)
Int
java-staticMemoryLruGcSettings.Builder

Returns a new instance ofMemoryLruGcSettings.Builder with default configurations.

String

Public properties

Long

Public functions

equals

fun equals(o: Any!): Boolean

hashCode

fun hashCode(): Int

newBuilder

java-static fun newBuilder(): MemoryLruGcSettings.Builder

Returns a new instance ofMemoryLruGcSettings.Builder with default configurations.

toString

fun toString(): String

Public properties

sizeBytes

val sizeBytesLong

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.