Click or drag to resize
FetchPolicy Enumeration
Policy that specifies how a resource should be fetched as part of a GET.

Namespace: Oracle.Cloud.Mobile.Synchronization
Assemblies:  Oracle.Cloud.Mobile.Synchronization.PCL (in Oracle.Cloud.Mobile.Synchronization.PCL.dll) Version: 16.1.3.1 (16.1.3.1)
  Oracle.Cloud.Mobile (in Oracle.Cloud.Mobile.dll) Version: 16.1.3.1 (16.1.3.1)
Syntax
public enum FetchPolicy
Members
  Member nameValueDescription
FetchFromCache0 The cached copy should be returned, even if it has expired. If there is no copy in the cache then an error is generated (HTTP 404).
FetchFromService1 The resource should be downloaded from the service even if there is a copy in the cache.
FetchFromServiceIfOnline2 The resource should be downloaded from the service even if there is a copy in the cache if the device is online. If the device is offline any cached copy will be returned even if it has expired.
FetchFromServiceOnCacheMissOrExpiry3 The cached copy should be returned unless there is no copy in the cache or the copy has expired, in which case the resource will be downloaded from the service.
FetchFromServiceOnCacheMiss4 The cached copy should be returned even if it has expired. If there is no copy in the cache the resource will be downloaded from the service.
FetchFromCacheScheduleRefresh5 The cached copy should be returned, even if it has expired, if there is no copy in the cache then an error is generated (HTTP 404). A background refresh operation is triggered to update the cache.
FetchWithRefresh6 The cached copy should be returned, if there is a cache miss or the cached copy has expired then the resource is downloaded before the call completes otherwise a background refresh is triggered.
See Also