Package | com.myflashlab.air.extensions.firebase.firestore |
Class | public class Source |
Inheritance | Source Object |
Constant | Defined By | ||
---|---|---|---|
CACHE : String = CACHE [static]
Causes Firestore to immediately return a value from the cache, ignoring the server completely (implying that
the returned value may be stale with respect to the value on the server). | Source | ||
DEFAULT : String = DEFAULT [static]
Causes Firestore to try to retrieve an up-to-date (server-retrieved) snapshot, but fall back to returning cached
data if the server can't be reached. | Source | ||
SERVER : String = SERVER [static]
Causes Firestore to avoid the cache, generating an error if the server cannot be reached. | Source |
CACHE | Constant |
public static const CACHE:String = CACHE
Causes Firestore to immediately return a value from the cache, ignoring the server completely (implying that the returned value may be stale with respect to the value on the server). If there is no data in the cache to satisfy the read() call, read() will return an error and read() will return an empty QuerySnapshot with no documents.
DEFAULT | Constant |
public static const DEFAULT:String = DEFAULT
Causes Firestore to try to retrieve an up-to-date (server-retrieved) snapshot, but fall back to returning cached data if the server can't be reached.
SERVER | Constant |
public static const SERVER:String = SERVER
Causes Firestore to avoid the cache, generating an error if the server cannot be reached. Note that the cache will still be updated if the server request succeeds. Also note that latency-compensation still takes effect, so any pending write operations will be visible in the returned data (merged into the server-provided data).