开发者

Application State, How long is the data saved in the memory?

How long is the data in a Application State stored ? Untill it's 开发者_Python百科full, or a specific time?

If, until it's full. How much data are we talking about ?


AFAIK, its stored until you remove it, or the application is recycled.

Consider using the ASP.NET cache instead. You'll have more control over lifetimes.


State stored in the Application variables will remain there until removed or until the web application recycles or is reset.

As for talking about it being "full" - there is no tracking of how much memory is being used by the HttpApplicationState object. One assumes that the process can run into an OutOfMemoryExcpetion if you exceed the amount of RAM that can be used by it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜