ExpirationMode.swift 562 B

1234567891011
  1. /// Sets the expiration mode for the `CacheManager`. The default value is `.auto` which means that `Cache`
  2. /// will handle expiration internally. It will trigger cache clean up tasks depending on the events its receives
  3. /// from the application. If expiration mode is set to manual, it means that you manually have to invoke the clear
  4. /// cache methods yourself.
  5. ///
  6. /// - auto: Automatic cleanup of expired objects (default).
  7. /// - manual: Manual means that you opt out from any automatic expiration handling.
  8. public enum ExpirationMode {
  9. case auto, manual
  10. }