Jump to top

Settings

interface

Specifies custom configurations for your Cloud Firestore instance. You must set these before invoking any other methods.

Used with firebase.firestore().settings().

Properties

cacheSizeBytes

</>

An approximate cache size threshold for the on-disk data. If the cache grows beyond this size, Firestore will start removing data that hasn't been recently used. The size is not a guarantee that the cache will stay below that size, only that if the cache exceeds the given size, cleanup will be attempted.

cacheSizeBytes: undefined | number;

host

</>

The hostname to connect to.

host: undefined | string;

persistence

</>

Enables or disables local persistent storage.

persistence: undefined | false | true;

ssl

</>

Whether to use SSL when connecting.

ssl: undefined | false | true;