iOS NSURLCache
2018-11-13 本文已影响0人
风冰武
1: 父类
继承于: NSObject
2: 属性
//共享URL缓存实例
@property (class, strong) NSURLCache *sharedURLCache;
3: 方法
//参数1:需要缓存响应的URL请求
//返回:请求的缓存URL响应
- (nullable NSCachedURLResponse *)cachedResponseForRequest:(NSURLRequest *)request;