gpt4 book ai didi

java - Java 中是否有等效的 ASP.NET 控件缓存和 Post-cache 替换

转载 作者:太空宇宙 更新时间:2023-11-04 06:38:21 25 4
gpt4 key购买 nike

参见此处http://msdn.microsoft.com/en-us/library/vstudio/h30h475z(v=vs.90).aspx

In control caching, also known as fragment caching, you can cache parts of the page output by creating user controls to contain the cached content and then marking the user controls as cacheable. This allows specific content within a page to be cached, while the overall page is recreated each time.

Post-cache substitution is the opposite. The page is cached, but fragments within the page are dynamic and should therefore not be cached.

最佳答案

没有您提到的缓存后替换

对于部分网页缓存,您可以使用 EH CacheOS Cache Tags

操作系统缓存现已失效,但您可以下载库。它易于使用。

您的应用服务器可能提供自己的缓存库。例如,Websphere 提供 cache libraries您可以使用

关于java - Java 中是否有等效的 ASP.NET 控件缓存和 Post-cache 替换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24998395/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com