Policy that specifies how a resource should be fetched as part of a GET.
Namespace: Oracle.Cloud.Mobile.SynchronizationAssemblies: 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)
SyntaxPublic Enumeration FetchPolicy
public enum class FetchPolicy
Members
| Member name | Value | Description |
---|
| FetchFromCache | 0 |
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).
|
| FetchFromService | 1 |
The resource should be downloaded from the service even if there is a copy in the cache.
|
| FetchFromServiceIfOnline | 2 |
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.
|
| FetchFromServiceOnCacheMissOrExpiry | 3 |
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.
|
| FetchFromServiceOnCacheMiss | 4 |
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.
|
| FetchFromCacheScheduleRefresh | 5 |
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.
|
| FetchWithRefresh | 6 |
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