StoreType
public enum StoreType
Defines the behavior of a DataStore instance.
-
Ready to work completly offline and synchronize with the server manually calling methods like
pull
,push
,sync
(push + pull) andpurge
.Declaration
Swift
case sync
-
Callbacks will be called twice, the 1st call will return data from the local cache in the device and the 2nd call will return the most recent data from the backend.
Declaration
Swift
case cache
-
Guaranteed that all the data returned will be the most recent data from the backend.
Declaration
Swift
case network
-
Tries to get the most recent data from the backend first, if it fails it returns data from the local cache.
Declaration
Swift
case auto