2
0

CacheDefinitions.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // System.Web.Caching
  3. //
  4. // Author:
  5. // Patrik Torstensson ([email protected])
  6. //
  7. // (C) Copyright Patrik Torstensson, 2001
  8. //
  9. namespace System.Web.Caching
  10. {
  11. /// <summary>
  12. /// Specifies the relative priority of items stored in the Cache.
  13. /// </summary>
  14. public enum CacheItemPriority {
  15. Low = 1,
  16. BelowNormal = 2,
  17. Normal = 3,
  18. Default = 3,
  19. AboveNormal = 4,
  20. High = 5,
  21. NotRemovable
  22. }
  23. /// <summary>
  24. /// Specifies the reason an item was removed from the Cache.
  25. /// </summary>
  26. public enum CacheItemRemovedReason {
  27. Removed = 1,
  28. Expired = 2,
  29. Underused = 3,
  30. DependencyChanged = 4
  31. }
  32. /// <summary>
  33. /// Defines a callback method for notifying applications when a cached item is removed from the Cache.
  34. /// </summary>
  35. /// <param name="key">The index location for the item removed from the cache. </param>
  36. /// <param name="value">The Object item removed from the cache. </param>
  37. /// <param name="reason">The reason the item was removed from the cache, as specified by the CacheItemRemovedReason enumeration.</param>
  38. public delegate void CacheItemRemovedCallback(string key, object value, CacheItemRemovedReason reason);
  39. }