StorageExpiration

public enum StorageExpiration

Represents the expiration strategy used in storage.

  • never: The item never expires.
  • seconds: The item expires after a time duration of given seconds from now.
  • days: The item expires after a time duration of given days from now.

Date

The item expires after a given date.
  • The item never expires.

    Declaration

    Swift

    case never
  • The item expires after a time duration of given seconds from now.

    Declaration

    Swift

    case seconds(TimeInterval)
  • The item expires after a time duration of given days from now.

    Declaration

    Swift

    case days(Int)
  • The item expires after a given date.

    Declaration

    Swift

    case date(Date)
  • Indicates the item is already expired. Use this to skip cache.

    Declaration

    Swift

    case expired