ServiceCachePolicy

public enum ServiceCachePolicy

The cache policy defines the behavior of the Service as to if it will return cached data or load data from the server.

Remark

Only applies to Services that load data from the server.
  • Return the cached data first and load the data from the server.

    Declaration

    Swift

    case returnCacheDataAndLoad
  • Only return the cached data, do not load from the server.

    Declaration

    Swift

    case returnCacheDataDontLoad