Open ClassFoundationNetworking5.9.0
URLCache
class URLCache
Superclasses
class NSObject
The root class of most Foundation class hierarchies.
Citizens in FoundationNetworking
Conformances
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol NSObjectProtocol
The
NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
Members
init(memoryCapacity: Int, diskCapacity: Int, diskPath: String?
) class var shared: URLCache
var currentDiskUsage: Int
var currentMemoryUsage: Int
var diskCapacity: Int
var memoryCapacity: Int
func cachedResponse(for: URLRequest
) -> CachedURLResponse? func getCachedResponse(for: URLSessionDataTask, completionHandler: (CachedURLResponse?) -> Void
) func removeAllCachedResponses(
) func removeCachedResponse(for: URLRequest
) func removeCachedResponse(for: URLSessionDataTask
) func removeCachedResponses(since: Date
) func storeCachedResponse(CachedURLResponse, for: URLRequest
) func storeCachedResponse(CachedURLResponse, for: URLSessionDataTask
) enum StoragePolicy