Name
CacheItemRemovedReason
Synopsis
If you have set a callback to occur when a cached item is removed, you
will be provided with a CacheItemRemovedReason
argument.
The CacheItemRemovedReason
will
be Expired
if the sliding or absolute expiration
time interval passed, Removed
if the object was
removed programmatically with the Cache.Remove()
method or by an Cache.Insert()
method with the same
key, DependencyChanged
if the object was invalidated
because of a dependency, or Underused
if it has been
removed to free memory.
Public Enum CacheItemRemovedReason Removed = 1 Expired = 2 Underused = 3 DependencyChanged = 4 End Enum
Hierarchy
System.Object→System.ValueType→ System.Enum(System.IComparable
, System.IFormattable
, System.IConvertible)→ CacheItemRemovedReason
Get ASP.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.