CacheItemUpdateReason 枚举

定义

指定要从 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
继承
CacheItemUpdateReason

字段

DependencyChanged 2

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

Expired 1

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

注解

与枚举不同, 此枚举不Removed包含或Underused值。 CacheItemRemovedReasonUnlike 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.

适用于