本文介绍了缓存数据.NET 4.0(Asp.NET)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以explane我什么是 CacheSpecificEviction 在细节和如何避免呢?

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

我在 CacheEntryRemovedArguments.RemovedReason 歌厅这一点。

推荐答案

CacheSpecificEviction为理由删除缓存条目是指的项目已被删除,因为缓存提供商的驱逐策略决定了它应该被删除 - 我知道,那是pretty非特异性,但它几乎不能更具体地,因为许多可能的缓存引擎实现及其不同驱逐策略(通常配置中,例如在AppFabric的缓存又名速度)的。在generel,驱逐的意思是好了,也有运行内存的风险,我们应该删除一些项目 - 例如这些最近最少使用(LRE逐出策略),或者最不经常使用动态老化(LFDA)使用等。 。因此,要摆脱驱逐的问题,前人的精力你检查你的缓存内存使用和限制,驱逐配置选项...

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...

这篇关于缓存数据.NET 4.0(Asp.NET)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-29 01:25