问题
Using the runtime in-memory cache in ASP.NET, what are the potential pitfalls of storing data? How much data is "too much" generally, and on what scale?
回答1:
After getting around to testing some code which intensely uses the cache, there is no appreciable impact on performance that I can measure. It seems that when the cache approached memory limits, it simply kicks the oldest content off early, and so the performance impact is negligible.
来源:https://stackoverflow.com/questions/29640752/performance-hits-for-caching-data-in-memory