Caching Data .Net 4.0 (Asp.NET)

给你一囗甜甜゛ 提交于 2019-12-10 09:05:50

问题


Can anybody explane me what is "CacheSpecificEviction" in detail and how to avoid it?

I am geting this in CacheEntryRemovedArguments.RemovedReason.


回答1:


CacheSpecificEviction as reason for removing cache entry means "the item was removed, because the cache provider's eviction policy determined it should be removed" - I know, it is pretty unspecific, but it hardly can be more specific, because of many possible cache-engine implementations and their different eviction policies (often configurable, for example in AppFabric Cache aka Velocity). In generel, eviction means "ok, there are risk of running out of memory, we should remove some items - for example these Least Recently Used (LRE eviction policy), or maybe Least Frequently Used with Dynamic Aging (LFDA), etc.". So to get rid of eviction problems, you sould check your cache memory usage and limits, eviction configuration options...



来源:https://stackoverflow.com/questions/5380875/caching-data-net-4-0-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!