CachePolicy
Strategy describing how a repository should reconcile cached data with the network. Mirrors SwiftyNetwork's CachePolicy.
Inheritors
Types
Link copied to clipboard
Always load from the network, ignoring (but refreshing) the cache.
Link copied to clipboard
Return cached data when present, otherwise load from the network.
Link copied to clipboard
Return cached data only if it is no older than maxAgeMillis; otherwise load from the network.
Functions
Link copied to clipboard
Whether cached data of age cacheAgeMillis may be served under this policy.