mirror of
https://github.com/hanzoai/firebase-js-sdk.git
synced 2026-09-24 16:59:10 +00:00
1.1 KiB
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 %}
MemoryLruGarbageCollector interface
A garbage collector deletes Least-Recently-Used documents in multiple batches.
This collector is configured with a target size, and will only perform collection when the cached documents exceed the target size. It avoids querying backend repeated for the same query or document, at the risk of having a larger memory footprint.
Use factory function to create a instance of this collector.
Signature:
export declare interface MemoryLruGarbageCollector
Properties
| Property | Type | Description |
|---|---|---|
| kind | 'memoryLru' |
MemoryLruGarbageCollector.kind
Signature:
kind: 'memoryLru';