摘要:
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); } 阅读全文