You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is generated by the JS SDK team, and any local changes will be
8
+
overwritten. Changes should be made in the source code at
9
+
https://github.com/firebase/firebase-js-sdk
10
+
{% endcomment %}
11
+
12
+
# MemoryEagerGarbageCollector interface
13
+
A garbage collector deletes documents whenever they are not part of any active queries, and have no local mutations attached to them.
14
+
15
+
This collector tries to ensure lowest memory footprints from the SDK, at the risk of documents not being cached for offline queries or for direct queries to the cache.
16
+
17
+
Use factory function to create an instance of this collector.
This is generated by the JS SDK team, and any local changes will be
8
+
overwritten. Changes should be made in the source code at
9
+
https://github.com/firebase/firebase-js-sdk
10
+
{% endcomment %}
11
+
12
+
# MemoryLocalCache interface
13
+
Provides an in-memory cache to the SDK. This is the default cache unless explicitly configured otherwise.
14
+
15
+
To use, create an instance using the factory function , then set the instance to `FirestoreSettings.cache` and call `initializeFirestore` using the settings object.
This is generated by the JS SDK team, and any local changes will be
8
+
overwritten. Changes should be made in the source code at
9
+
https://github.com/firebase/firebase-js-sdk
10
+
{% endcomment %}
11
+
12
+
# MemoryLruGarbageCollector interface
13
+
A garbage collector deletes Least-Recently-Used documents in multiple batches.
14
+
15
+
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.
16
+
17
+
Use factory function to create a instance of this collector.
This is generated by the JS SDK team, and any local changes will be
8
+
overwritten. Changes should be made in the source code at
9
+
https://github.com/firebase/firebase-js-sdk
10
+
{% endcomment %}
11
+
12
+
# PersistentLocalCache interface
13
+
Provides a persistent cache backed by IndexedDb to the SDK.
14
+
15
+
To use, create an instance using the factory function , then set the instance to `FirestoreSettings.cache` and call `initializeFirestore` using the settings object.
0 commit comments