缓存

 [OutputCache(Duration=15)]
        public ActionResult Index()
        {
            var list = db.BlogArticles.Where(a => a.AIsDel == false).ToList();
            return View(list);
        }
缓存15S

 

posted @ 2014-04-07 00:22  bl84757922  阅读(84)  评论(0编辑  收藏  举报