Enum CacheItemPriority
Specifies the relative priority of items stored in the
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public enum CacheItemPriority : byte
Remarks
When the application's cache is full or runs low on memory, the
Examples
The following example demonstrates how to insert an item in a
NCache.Cache.Insert("DSN", connectionString, null, d, t, CacheItemPriority.High, onRemove);
Cache.Insert("DSN", connectionString, null, d, t, CacheItemPriority.High, onRemove);
Fields
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 deleted from the cache as the server frees system memory. |