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 SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note