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

Same Platform Class Versioning [Deprecated]

If you have multiple applications connected to your cache environment, you will not be able to upgrade these client applications simultaneously. However, when certain classes are upgraded in some applications, how can they share data with the older versions of the applications? This is where Class Versioning comes in.

If your class is serializable and you write objects of the class to a data source, you must use the same version of the class to read them back. Any changes to the class can lead to version mismatches, making any previously stored data unreadable.

With NCache's Class Versioning Compatibility feature for the same platforms, you can enable class versioning by configuring it through administrative cache tools and mapping attributes to the target class. For more details, refer to Registering Classes for Portable Data Sharing.

Class Attributes Mapping

By mapping the common attributes between versions, NCache enables backward and forward compatibility, as shown below:

Class Attributes Mapping
ProductV2 Class (C#) ProductV1 Class (C#)
id id
name name
price price
quantity quantity
discount

Once you map ProductV2 to ProductV1, you'll be able to store ProductV2 and retrieve it as ProductV1, and vice versa.

See Also

Upgrade NCache Version Offline
Live Upgrade NCache Version
IP Binding with Multiple NICs
Graceful Node Down

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