查看 MSDN doc对于 HttpContext.Cache
对象的 .NET 2.0,它是这样说的:
The Cache for the current HTTP request.
但是看着 .NET 3.0 version它说的版本:
The Cache for the current application domain.
这在功能上有很大的不同。我的使用经验一直是Per Request缓存。但是文档似乎不同意我的看法。正确的用法是什么? MSDN 文档有误吗?
最佳答案
功能没变,只是描述变了。
“The Cache for the current HTTP request”为“The Cache for the current application domain”,即当前请求执行的应用域。
关于c# - HttpContext.Cache - 每个请求还是每个应用程序域?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7124175/