CacheItemUpdateReason CacheItemUpdateReason CacheItemUpdateReason CacheItemUpdateReason Enum

定义

指定要从 Cache 对象中移除缓存项的原因。Specifies the reason that a cached item is being removed from the Cache object.

public enum class CacheItemUpdateReason
public enum CacheItemUpdateReason
type CacheItemUpdateReason = 
Public Enum CacheItemUpdateReason
继承
CacheItemUpdateReasonCacheItemUpdateReasonCacheItemUpdateReasonCacheItemUpdateReason

字段

DependencyChanged DependencyChanged DependencyChanged DependencyChanged 2

指定要从缓存中移除项的原因是关联的 CacheDependency 对象发生了更改。Specifies that the item is being removed from the cache because the associated CacheDependency object changed.

Expired Expired Expired Expired 1

指定要从缓存中移除项的原因是绝对到期或可调到期时间间隔已到期。Specifies that the item is being removed from the cache because the absolute or sliding expiration interval expired.

注解

与不同CacheItemRemovedReason枚举中,此枚举不包括RemovedUnderused值。Unlike the CacheItemRemovedReason enumeration, this enumeration does not include the Removed or Underused values. 可更新的缓存项不可删除,并可以因此永远不会自动删除由 ASP.NET 即使需要释放内存。Updateable cache items are not removable and can thus never be automatically removed by ASP.NET even if there is a need to free memory.

适用于