Same Platform Class Versioning [Deprecated]
Class Versioning in NCache enables seamless data sharing for different versions of the same application class. It addresses the issue of backward and forward compatibility so that the updated client applications can read and write data in parallel with the previous versions without any serialization errors. Although this particular approach is deprecated in favor of more reliable Portable Data Sharing approaches, it offers a mapping facility to address attribute differences among different versions of classes.
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