Back to Firebase Js Sdk

MemoryCacheSettings interface

docs-devsite/firestore_.memorycachesettings.md

12.12.11.1 KB
Original Source

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.

<b>Signature:</b>

typescript
export declare interface MemoryCacheSettings 

Properties

PropertyTypeDescription
garbageCollectorMemoryGarbageCollectorThe garbage collector to use, for the memory cache layer. A <code>MemoryEagerGarbageCollector</code> 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.

<b>Signature:</b>

typescript
garbageCollector?: MemoryGarbageCollector;