OnDiskCachePolicy

public enum OnDiskCachePolicy : Equatable

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

  • cache with set time interval in seconds and maximal cache size

    Declaration

    Swift

    case cache(duration: Measurement<UnitDuration>, maxSize: Measurement<UnitInformationStorage>)
  • no cache

    Declaration

    Swift

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

    Declaration

    Swift

    public static let `default`: OnDiskCachePolicy