12 2010 档案

摘要:示例程序 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中添加数据库连接 阅读全文
posted @ 2010-12-05 03:30 悲伤的第七音 阅读(1284) 评论(0) 推荐(0)