• Facebook
  • Twitter
  • Youtube
  • LinkedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Try NCache
  • Contact Us
Try NCache
Show / Hide Table of Contents

Enum TopicPriority

Specifies the relative priority of topics stored in the cache.

Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public enum TopicPriority
Remarks

When the application's cache is full or runs low on memory, the cache selectively purges items to free system memory. When a topic is added to the cache, you can assign it a relative priority compared to the other topics stored in the cache.

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

Examples

The following example demonstrates how to set TopicPriority of a topic in a cache to High.

ITopic topic=messagingService.CreateTopic("mytopic", TopicPriority.High);

Fields

Name Description
High

Messages in topic with this priority level are less likely to be deleted from the cache as the server frees system memory.

Low

Messages in topic with this priority level are the most likely to be deleted from the cache as the server frees system memory.

Normal

Messages in topic with this priority level are likely to be deleted from the cache as the server frees system memory only after those topics with Low priority. This is the default priority of the topic.

Contact Us

PHONE

+1 214-619-2601   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Try NCache
Pricing
NCache Playground

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

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Terms of Use
  •  
  • Privacy Policy
  •  
  • Cookie Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
  • Facebook
  • Twitter
  • Youtube
  • LinkedIn
  • RSS