public static FaqdescInfo GetItem(uint Faq_id) { if (itemCacheTimeout <= 0) { return(Select.WhereFaq_id(Faq_id).ToOne()); } string key = string.Concat("pifa_BLL_Faqdesc_", Faq_id); string value = RedisHelper.Get(key); if (!string.IsNullOrEmpty(value)) { try { return(FaqdescInfo.Parse(value)); } catch { } } FaqdescInfo item = Select.WhereFaq_id(Faq_id).ToOne(); if (item == null) { return(null); } RedisHelper.Set(key, item.Stringify(), itemCacheTimeout); return(item); }