/// <summary> /// 模块是否启用缓存 /// </summary> /// <param name="modelType">实体类型</param> /// <returns></returns> public static bool IsModelEnableCache(Type modelType) { string cacheType = string.Empty; bool isEnableCache = ModelConfigHelper.IsEnableCache(modelType, out cacheType); return(isEnableCache); }
/// <summary> /// 是否启用内存缓存 /// </summary> /// <param name="modelType">实体类型</param> /// <returns></returns> public static bool IsModelEnableMemeryCache(Type modelType) { string cacheType = string.Empty; bool isEnableCache = ModelConfigHelper.IsEnableCache(modelType, out cacheType); if (string.IsNullOrEmpty(cacheType)) { cacheType = "0"; } return(isEnableCache && cacheType == "0"); }