示例程序 1.在Action上标记启用缓存,如:[OutputCache(Duration = 5, VaryByParam = 'none')] 2.在Action上标记禁用本地缓存,如:[OutputCache(Location = System.Web.UI.OutputCacheLocation.None)] 3.在Action上标记使用缓存依赖,如:[OutputCache(Duration = 9999, VaryByParam = 'none', SqlDependency ='Demo:UserInfo')] 使用缓存依赖的要点 1.在Web.config中添加数据库连接 Read More
posted @ 2010-12-05 03:30 悲伤的第七音 Views(1281) Comments(0) Diggs(0)