开发者

What happens when a MemoryCache object exceeds its CacheMemoryLimit?

开发者 https://www.devze.com 2023-02-06 01:08 出处:网络
When an instanc开发者_Python百科e of System.Runtime.Caching.MemoryCache (.NET 4.0) exceeds its CacheMemoryLimit, are all cache entries removed, or just some of them?Technically, it should just be some

When an instanc开发者_Python百科e of System.Runtime.Caching.MemoryCache (.NET 4.0) exceeds its CacheMemoryLimit, are all cache entries removed, or just some of them?


Technically, it should just be some of them. However, I've had some issues with items not being evicted at all -- which I seem to have tracked down to the new garbage collection configuration options in .Net 4. It won't ever be all of them, though.

0

精彩评论

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