2001-12-19 Gaurav Vaish <gvaish@iitk.ac.in>
[mono.git] / mcs / class / System.Web / System.Web.Caching / CacheDefinitions.cs
1 // \r
2 // System.Web.Caching\r
3 //\r
4 // Author:\r
5 //   Patrik Torstensson (Patrik.Torstensson@labs2.com)\r
6 //\r
7 // (C) Copyright Patrik Torstensson, 2001\r
8 //\r
9 namespace System.Web.Caching\r
10 {\r
11         /// <summary>\r
12         /// Specifies the relative priority of items stored in the Cache.\r
13         /// </summary>\r
14         public enum CacheItemPriority {\r
15                 AboveNormal,\r
16                 BelowNormal,\r
17                 Default,\r
18                 High,\r
19                 Low,\r
20                 Normal,\r
21                 NotRemovable \r
22         }\r
23 \r
24         /// <summary>\r
25         /// Specifies the rate at which the priority of items stored in the Cache are downgraded when not accessed frequently.\r
26         /// </summary>\r
27         public enum CacheItemPriorityDecay { \r
28                 Default,\r
29                 Fast,\r
30                 Medium,\r
31                 Never,\r
32                 Slow\r
33         }\r
34 \r
35         /// <summary>\r
36         /// Specifies the reason an item was removed from the Cache.\r
37         /// </summary>\r
38         public enum CacheItemRemovedReason {\r
39                 DependencyChanged,\r
40                 Expired,\r
41                 Removed,\r
42                 Underused\r
43         }\r
44 \r
45         /// <summary>\r
46         /// Defines a callback method for notifying applications when a cached item is removed from the Cache.\r
47         /// </summary>\r
48         /// <param name="key">The index location for the item removed from the cache. </param>\r
49         /// <param name="value">The Object item removed from the cache. </param>\r
50         /// <param name="reason">The reason the item was removed from the cache, as specified by the CacheItemRemovedReason enumeration.</param>\r
51         public delegate void CacheItemRemovedCallback(string key, object value, CacheItemRemovedReason reason);\r
52 \r
53         }\r