开发者

HttpContext.Cache - Per Request or per App Domain?

Looking at the MSDN doc for .NET 2.0 of the HttpContext.Cache object it says this:

The Cache for the current HTTP request.

But looking at the .NET 3.0 version version it says:

The Cache for the current application domain.

开发者_C百科

That's a pretty significant difference in functionality. My experience in using it has always been that it was a Per Request cache. But the docs appear to disagree with me. What is the correct usage? Are the MSDN docs wrong?


The functionality hasn't changed, only the description.

"The Cache for the current HTTP request" is "The Cache for the current application domain", that is, the application domain in which the current request is executing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜