CachePolicy
ENUM
CachePolicy
Swift
1public enum CachePolicyA cache policy that specifies whether results should be fetched from the server or loaded from the local cache.
Cases
returnCacheDataElseFetch
Swift
1case returnCacheDataElseFetchReturn data from the cache if available, else fetch results from the server.
fetchIgnoringCacheData
Swift
1case fetchIgnoringCacheDataAlways fetch results from the server.
fetchIgnoringCacheCompletely
Swift
1case fetchIgnoringCacheCompletelyAlways fetch results from the server, and don't store these in the cache.
returnCacheDataDontFetch
Swift
1case returnCacheDataDontFetchReturn data from the cache if available, else return nil.
returnCacheDataAndFetch
Swift
1case returnCacheDataAndFetchReturn data from the cache if available, and always fetch results from the server.
Properties
default
Swift
1public static var `default`: CachePolicy = .returnCacheDataElseFetchThe current default cache policy.