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