//
// System.Web.Caching
//
// Author:
// Patrik Torstensson (Patrik.Torstensson@labs2.com)
//
// (C) Copyright Patrik Torstensson, 2001
//
namespace System.Web.Caching
{
///
/// Specifies the relative priority of items stored in the Cache.
///
public enum CacheItemPriority {
AboveNormal,
BelowNormal,
Default,
High,
Low,
Normal,
NotRemovable
}
///
/// Specifies the rate at which the priority of items stored in the Cache are downgraded when not accessed frequently.
///
public enum CacheItemPriorityDecay {
Default,
Fast,
Medium,
Never,
Slow
}
///
/// Specifies the reason an item was removed from the Cache.
///
public enum CacheItemRemovedReason {
DependencyChanged,
Expired,
Removed,
Underused
}
///
/// Defines a callback method for notifying applications when a cached item is removed from the Cache.
///
/// The index location for the item removed from the cache.
/// The Object item removed from the cache.
/// The reason the item was removed from the cache, as specified by the CacheItemRemovedReason enumeration.
public delegate void CacheItemRemovedCallback(string key, object value, CacheItemRemovedReason reason);
}