CacheItemPriority Enumeration
Specifies the relative priority of items stored in the Cache object.
Assembly: System.Web (in System.Web.dll)
| Member name | Description | |
|---|---|---|
| AboveNormal | Cache items with this priority level are less likely to be deleted as the server frees system memory than those assigned a Normal priority. | |
| BelowNormal | Cache items with this priority level are more likely to be deleted from the cache as the server frees system memory than items assigned a Normal priority. | |
| Default | The default value for a cached item's priority is Normal. | |
| High | Cache items with this priority level are the least likely to be deleted from the cache as the server frees system memory. | |
| Low | Cache items with this priority level are the most likely to be deleted from the cache as the server frees system memory. | |
| Normal | Cache items with this priority level are likely to be deleted from the cache as the server frees system memory only after those items with Low or BelowNormal priority. This is the default. | |
| NotRemovable | The cache items with this priority level will not be automatically deleted from the cache as the server frees system memory. However, items with this priority level are removed along with other items according to the item's absolute or sliding expiration time. |
When the Web server hosting an ASP.NET application runs low on memory, the Cache object selectively purges items to free system memory. When an item is added to the cache, you can assign it a relative priority compared to the other items stored in the cache. Items to which you assign higher priority values are less likely to be deleted from the cache when the server is processing a large number of requests, whereas items to which you assign lower priority values are more likely to be deleted. The default is Normal.
Note |
|---|
Items can always be removed from the cache programmatically, regardless of their cache priority. |
Available since 1.1
