Back to Firebase Js Sdk

PersistentLocalCache interface

docs-devsite/firestore_.persistentlocalcache.md

12.12.1918 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 %}

PersistentLocalCache interface

Provides a persistent cache backed by IndexedDb to the SDK.

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 PersistentLocalCache 

Properties

PropertyTypeDescription
kind'persistent'

PersistentLocalCache.kind

<b>Signature:</b>

typescript
kind: 'persistent';