public void SetValue <T>(string strKey, T value) { this.Cache.SetValue <T>(strKey, value); INITableModule tmINI = new INITableModule(); tmINI.SetValue(strKey, value); }
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); }