摘要:
string cacheKey = "key"; List list= new List(); Object obj = HttpRuntime.Cache[cacheKey]; if (obj == null) { list=数据库取数据; HttpRuntime.Cache.Add(cacheKey, list, null, DateTime.Now.AddMinutes(60), Cache.NoSlidingExpiration, CacheItemPriority.Normal, null); }
阅读全文
posted @ 2014-01-16 10:47
Ilin
阅读(160)
推荐(0)
编辑