public static ICache CacheFactory() { try { var type = AppConfig.GetFinalConfig("CacheStrategy", Models.CacheType.MSHttp, LogApi.GetCacheStrategy());//获取缓存类型 if (type != Models.CacheType.MSHttp) { return(CMCacheHelper.Instance); // CacheManager缓存 } else { return(HttpCacheHelper.dataCache); //原始net缓存 } } catch (Exception ex) { throw ex; } }