在任何框架中,缓存都是不可或缺的一部分,本框架亦然.在这个框架中,我们的缓存分为两部分:内存缓存和单次请求缓存.简单说来,就是一个使用微软提供的MemoryCache做扩展,并提供全局唯一实例:另一个使用微软提供的HttpContextBase做扩展,用户每发送一次请求,HttpContextBase都会被关联创建.先来看下接口约束: 1: using System; 2: using System.Collections.Generic; 3: using System.Linq; 4: us
+ (NSURLCache *)defaultURLCache { // It's been discovered that a crash will occur on certain versions // of iOS if you customize the cache. // // More info can be found here: https://devforums.apple.com/message/1102182#1102182 // // When iOS 7 suppor