コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }