简体   繁体   English

HttpContext.Current.Cache性能

[英]HttpContext.Current.Cache performance

I'm on IIS6 > ASP .NET > C# > WebService 我在IIS6> ASP .NET> C#> WebService

I have to put in Cache a lot of data (thousands of serialized object of about 2MB each). 我必须在Cache中放入大量数据(每个数千个序列化对象约2MB)。 How does IIS6 manage HttpContext.Current.Cache - does it save in RAM or temp file? IIS6如何管理HttpContext.Current.Cache - 它是保存在RAM还是临时文件中? Can I compress data before caching? 我可以在缓存之前压缩数据吗? What are the alternatives of HttpContext.Current.Cache? HttpContext.Current.Cache?哪些替代方案HttpContext.Current.Cache?

By default it is saved in RAM. 默认情况下,它保存在RAM中。 If you have saving that large amount of data you should think about saving it in a database. 如果您保存了大量数据,则应考虑将其保存在数据库中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM