Try Playground
Show / Hide Table of Contents

Class Versioning (Same Platform) [Deprecated]

Multiple applications are connected with the cache environment and you want to upgrade client applications. You cannot upgrade all the applications at the same time. Meanwhile, if some classes get upgraded in some applications, how can they share data with other old ones? Here comes the concept of Class Versioning.

If your class is serializable and you write objects of the class to a data source and then later read them back in, you need the same version of the class to read with what you used to write it with. If you want to use one version of a class to save something that acts like an object database, and then change the class (new version), you won't be able to read the new version.

With NCache’s feature of Class Versioning Compatibility for the same platforms, you can use the class versioning feature by configuring them through administrative cache tools and providing mapping for attributes with the target class. See Registering Classes for Portable Data Sharing.

Class Attributes Mapping

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

After mapping ProductV2 with ProductV1, you will be able to store Product V2 and get it in Product V1 and vice versa.

See Also

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

In This Article
  • Class Attributes Mapping
  • See Also

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Professional
  • 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 - 2025. All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top