标签:http io ar os 使用 sp on cti bs
public class CacheHelper}
var key = "DATADICTIONARIES_" + typeId;
var obj = JCK.Helper.CacheHelper.GetCache(key);
if (obj != null)
return (List<JCK.DAL.DataDictionary>)obj;
using (var entity = new JCK.DAL.Entities())
{
var list = entity.DataDictionaries.Where(m => m.TypeId == typeId && m.Isvalid).ToList();
if (list != null)
JCK.Helper.CacheHelper.SetCache(key, list, 60 * 60);
return list;
}
标签:http io ar os 使用 sp on cti bs
原文地址:http://blog.csdn.net/luohuajiexiejuan/article/details/41442527