NSCached object represents a cached response to a URL request. It provides the server’s response metadata in the form of an
NSURLResponse object, along with an
NSData object containing the actual cached content data. Its storage policy determines whether the response should be cached on disk, in memory, or not at all.
- iOS 2.0+
- macOS 10.2+
- tvOS 9.0+
- watchOS 2.0+
Cached responses also contain a user info dictionary where you can store app-specific information about the cached item.
NSURLCache class stores and retrieves instances of