• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

Enum CacheItemPriority

Specifies the relative priority of items stored in the cache.

Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public enum CacheItemPriority : byte
Remarks

When the application's cache is full or runs low on memory, the cache selectively purges items to free the 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.

The items that you assign higher priority values are less likely to be deleted from the cache when the server is processing a large number of requests, while items you assign lower priority values are more likely to be deleted. The default value is Normal.

Examples

The following example demonstrates how to set the CacheItemPriority of an item in a cache to a High Priority.

CacheItem item = new CacheItem(product);
item.Priority = CacheItemPriority.High;

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 with Normal priority.

Default

The default value for cached item's priority is Normal.

High

Cache items with this priority level are least likely to be deleted from the cache as the server frees system memory.

Low

Cache items with this priority level are 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 value.

NotRemovable

The cache items with this priority level will not be deleted from the cache as the server frees system memory.

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Community
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top