asp.net 中的应用程序状态可以存储有什么限制吗?? 我想知道这个限制,这样我就可以避免应用程序性能下降。
请您参考如下方法:
Resources: Because it is stored in memory, application state is very fast compared to saving data to disk or a database. However, storing large blocks of data in application state can fill up server memory, causing the server to page memory to disk. As an alternative to using application state, you can use the ASP.NET cache mechanism for storing large amounts of application data. The ASP.NET cache also stores data in memory and is therefore very fast; however, ASP.NET actively manages the cache and will remove items when memory becomes scarce. For more information see ASP.NET Caching Overview.
来自 MSDN (强调已添加)。
