| SyncPolicy Properties |
The SyncPolicy type exposes the following members.
| Name | Description | |
|---|---|---|
| ConflictResolutionPolicy |
Sepcifies how conflicts should be resolved.
| |
| Default |
Returns a SyncPolicy object with default values of FetchPolicy.FetchFromService, ExpirationPolicy.NeverExpire,
EvictionPolicy.ManualEviction and UpdatePolicy.UpdateIfOnline. The returned object should not be modified by callers.
| |
| EvictionPolicy |
Specifies when an expired resource is evicted from the cache.
| |
| ExpirationPolicy |
Specifies when a cached resource expires.
| |
| ExpireAfter |
The duration after which a cached resource expires, only valid if ExpirationPolicy is set to ExpireAfter.
| |
| FetchPolicy |
Specifies whether a GET returns data from the cache or the service.
| |
| NoCache |
The resource is not cached on the device. This is useful for sensitive or large data.
| |
| RefreshPolicy |
Specifies how a cached resource is refreshed.
| |
| UpdatePolicy |
Specifies how updates (PUT/POST/DELETE/PATCH) operations behave.
|