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 toFirestoreSettings.cache and callinitializeFirestore using the settings object.

Signature:

exportdeclareinterfaceMemoryLocalCache

Properties

PropertyTypeDescription
kind'memory'

MemoryLocalCache.kind

Signature:

kind:'memory';

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2023-03-30 UTC.