Performance Hits for Caching Data in Memory

2019-09-05 11:38发布

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条回答
在下西门庆
2楼-- · 2019-09-05 12:05

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.

查看更多
登录 后发表回答