PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Implementation Namespace / Cache­Item­Removed­Reason Enumeration

CacheItemRemovedReason Enumeration

Enumerates the reasons why an item can be removed from the cache.

Namespace:  PostSharp.Patterns.Caching.Implementation
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 2023.0.3.0 (2023.0.3.0)
public enum CacheItemRemovedReason
  Member nameValueDescription
Removed0 Directly removed from the cache, by calling the RemoveItem(String), or an invalidation method that invalidates a cached method directly (not indirectly through dependencies).
Expired1 Removed because of AbsoluteExpiration or SlidingExpiration.
Evicted2 Evicted to make space for newer cache items.
Invalidated3 Indirectly invalidated (through dependencies).
Other4 Other (or any reason that cannot be determined).
See Also