Files
firebase-js-sdk/docs-devsite/firestore_.memorycachesettings.md
wu-huiandGitHub 72c31adb5d Memory LRU GC (#6943)
Add LRU GC for memory cache.
2023-04-18 14:32:45 -04:00

1.1 KiB

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

MemoryCacheSettings interface

An settings object to configure an MemoryLocalCache instance.

Signature:

export declare interface MemoryCacheSettings 

Properties

Property Type Description
garbageCollector MemoryGarbageCollector The garbage collector to use, for the memory cache layer. A MemoryEagerGarbageCollector is used when this is undefined.

MemoryCacheSettings.garbageCollector

The garbage collector to use, for the memory cache layer. A MemoryEagerGarbageCollector is used when this is undefined.

Signature:

garbageCollector?: MemoryGarbageCollector;