开发者

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

开发者 https://www.devze.com 2023-02-09 15:58 出处:网络
How long is the data in a Application State stored ? Untill it\'s 开发者_Python百科full, or a specific time?

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

精彩评论

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

关注公众号