Compact Serialization [Deprecated]
Compact Serialization is a high-performance serialization framework in NCache that minimizes data size for optimized network throughput. Unlike standard .NET serialization, Compact Serialization enables dynamic serialization of both Generic and Non-Generic custom classes at runtime without any dependence on the Serializable attribute. Registering classes with Compact Serialization in NCache optimizes the binary footprint of objects before they are persisted in the distributed cache. These classes can be:
- Generic
- Non-Generic
Note
If you want to mark a class for compact serialization that requires a parameterized constructor, ensure that the class contains a default constructor.
In This Section
Non-Generic Registration
Explains how to register non-generic classes for Compact Serialization.
Non-Generic Unregistration
Explains how to unregister non-generic classes for Compact Serialization.
Generic Registration
Explains how to register generic classes for Compact Serialization.
Using Type Handler
Explains how to register generic classes for Compact Serialization using a generic type handler.