处理所有Web请求 NSURLCache子类:EVURLCache

jopen 9年前

EVURLCache 是 NSURLCache 的子类,用于处理使用 NSURLRequest 的 web 请求。

代码示例:

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {      EVURLCache.LOGGING = true // We want to see all caching actions      EVURLCache.MAX_FILE_SIZE = 26 // We want more than the default: 2^26 = 64MB      EVURLCache.MAX_CACHE_SIZE = 30 // We want more than the default: 2^30 = 1GB      EVURLCache.activate()      return true  }

项目主页:http://www.open-open.com/lib/view/home/1448890059514