【问题标题】:Can I use OutputCache with file dependency in ASP.Net MVC?我可以在 ASP.Net MVC 中使用带有文件依赖关系的 OutputCache 吗?
【发布时间】:2014-01-23 11:30:58
【问题描述】:

我有一个子操作方法。我可以将OutputCache 与文件依赖一起使用吗?我只能在System.Web.Mvc.OutputCacheAttribute 中看到SQLDependency 属性。

【问题讨论】:

    标签: asp.net-mvc-3 outputcache


    【解决方案1】:

    是的,您可以将 outputcache 与文件依赖项一起使用。查看以下链接了解更多详情。

    http://msdn.microsoft.com/en-us/library/67z4z916.aspx

    或

    http://www.c-sharpcorner.com/UploadFile/chinnasrihari/Asp-Net-mvc-framework-server-side-html-caching-techniques/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-10-05
      • 1970-01-01
      • 2016-09-14
      • 1970-01-01
      • 1970-01-01
      • 2011-04-28
      • 1970-01-01
      • 2019-10-29
      相关资源
      最近更新 更多