OnDiskCachePolicy

public enum OnDiskCachePolicy : Codable

The OnDiskCachePolicy sets rules for caching: time interval of storing the cache, maximum cache size, etc.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • cache with set time interval in seconds and maximal cache size in MB

    Declaration

    Swift

    case cache(TimeInterval, UInt)
  • no cache

    Declaration

    Swift

    case noCaching

Public

  • default value for caching: 24 hours of cache storing and 100 MB maximal size of the cache

    Declaration

    Swift

    public static var `default`: OnDiskCachePolicy