Back to Firebase Js Sdk

MemoryLocalCache interface

docs-devsite/firestore_.memorylocalcache.md

12.12.1936 B
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 %}

MemoryLocalCache interface

Provides an in-memory cache to the SDK. This is the default cache unless explicitly configured otherwise.

To use, create an instance using the factory function , then set the instance to FirestoreSettings.cache and call initializeFirestore using the settings object.

<b>Signature:</b>

typescript
export declare interface MemoryLocalCache 

Properties

PropertyTypeDescription
kind'memory'

MemoryLocalCache.kind

<b>Signature:</b>

typescript
kind: 'memory';