EyrURLCache

open class EyrURLCache: URLCache

Class extending standart URLCache functionality

  • Ceche force expiration time

    Declaration

    Swift

    open var cacheExpired: TimeInterval = 24.0 * 60.0 * 60.0
  • Ignored content strings

    Declaration

    Swift

    open var ignoredContent: [String] = []
  • UserInfo expires key to save in local storage

    Declaration

    Swift

    open static var ExpiresKey = "CNLURLCache"
  • Get cache response for a request

    Declaration

    Swift

    override open func cachedResponse(for request: URLRequest) -> CachedURLResponse?
  • Store cached response

    Declaration

    Swift

    override open func storeCachedResponse(_ cachedResponse: CachedURLResponse, for forRequest: URLRequest)