Kingfisher Documentation

Enumeration Storage‚ÄčExpiration

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.

Enumeration Cases

never

case never

The item never expires.

seconds

case seconds(TimeInterval) 

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

days

case days(Int) 

The item expires after a time duration of given days from now.

date

case date(Date) 

The item expires after a given date.

expired

case expired

Indicates the item is already expired. Use this to skip cache.