CacheItemPriority Enumeration
Specifies the relative priority of items stored in the Cache object.
Assembly: System.Web (in System.Web.dll)
| Member name | Description | |
|---|---|---|
| Low | Cache items with this priority level are the most likely to be deleted from the cache as the server frees system memory. | |
| 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. | |
| 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. | |
| 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. | |
| High | Cache items with this priority level are the least likely to be deleted from the cache as the server frees system memory. | |
| 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. | |
| Default | The default value for a cached item's priority is Normal. |
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. |
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note: