Example #1
0
        public void SetValue <T>(string strKey, T value)
        {
            this.Cache.SetValue <T>(strKey, value);
            INITableModule tmINI = new INITableModule();

            tmINI.SetValue(strKey, value);
        }
Example #2
0
        public T GetValue <T>(string strKey)
        {
            T value = this.Cache.GetValue <T>(strKey);

            if (value == null)
            {
                INITableModule tmINI    = new INITableModule();
                string         strValue = tmINI.GetValue(strKey);
                this.Cache.SetValue(strKey, strValue);

                value = ConvertType <T>(strValue);
            }

            return(value);
        }