首页 > Web开发 > 详细

asp.net mvc 缓存

时间:2015-09-11 19:16:36      阅读:234      评论:0      收藏:0      [点我收藏+]

 

webConfig 里面配置缓存时间

<caching>
<outputCacheSettings>
<outputCacheProfiles>
<add name="Long" duration="360"/>
<add name="Short" duration="5"/>
</outputCacheProfiles>

</outputCacheSettings>
</caching>

 

[OutputCache(CacheProfile = ("Long"))]

 

 [OutputCache(Duration = 60,Location = OutputCacheLocation.Client)]  在什么位置坐缓存

asp.net mvc 缓存

原文:http://www.cnblogs.com/zhtbk/p/4801610.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!