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

Data Expiration Strategies in Cache

NCache supports time-based data invalidation, allowing cache items to expire after a specified duration or interval. This is useful when the expected frequency of data changes is known. For example, region metadata that updates infrequently can safely expire on a schedule. By utilizing Absolute Expiration with a known validity period and Sliding Expiration for session-based or idle data, NCache automatically removes stale entries and helps maintain application performance and data freshness.

Time-based expiration also helps reduce the possibility of clients receiving stale data. For instance, if product inventory is updated in the database but not yet reflected in the cache, expiring the stale cache entry allows the application to load the latest data on the next request. It is equally effective for session management: sessions that remain idle for a defined period can be automatically removed from the cache.

In This Section

Data Expiration Overview
Explains use cases and behaviors for Absolute Expiration, Sliding Expiration, and Default Expiration.

Absolute Data Expiration
Explains how to perform operations using Absolute Expiration.

Sliding Data Expiration
Explains how to perform operations using Sliding Expiration.

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