Back to Firebase Js Sdk

MemoryEagerGarbageCollector interface

docs-devsite/firestore_.memoryeagergarbagecollector.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 %}

MemoryEagerGarbageCollector interface

A garbage collector deletes documents whenever they are not part of any active queries, and have no local mutations attached to them.

This collector tries to ensure lowest memory footprints from the SDK, at the risk of documents not being cached for offline queries or for direct queries to the cache.

Use factory function to create an instance of this collector.

<b>Signature:</b>

typescript
export declare interface MemoryEagerGarbageCollector 

Properties

PropertyTypeDescription
kind'memoryEager'

MemoryEagerGarbageCollector.kind

<b>Signature:</b>

typescript
kind: 'memoryEager';