public static ModuleSetting GetModuleSettings(int moduleId) { string param = "GetModuleSettings?moduleId=" + moduleId.ToString(); DataCaching data = new DataCaching(); ModuleSetting setting = (ModuleSetting)data.GetHashCache(key, param); if (setting != null) { return(setting); } setting = DataAccessProvider.Instance().GetModuleSettings(moduleId); data.SetHashCache(key, param, AppEnv.GetTimeCacheExpire(), setting); return(setting); }
public static ModuleSetting GetModuleSettings(int moduleId) { const string key = "VmgPortal.Portal.ModuleControl.GetModuleSettings"; string param = moduleId.ToString(); DataCaching data = new DataCaching(); ModuleSetting setting = (ModuleSetting)data.GetHashCache(key, param); if (setting != null) { return(setting); } setting = DataAccessProvider.Instance().GetModuleSettings(moduleId); data.SetHashCache(key, param, AppEnv.GetTimeCacheExpire(), setting); return(setting); }