Serialize with the IGeodeSerializable Interface
The .NET IGeodeSerializable
interface provides fast and compact data serialization.
Generic and Custom Serializable Types
All built-in generics are automatically registered at initialization. You have a couple of options for complex key types.
How Serialization Works with IGeodeSerializable
When your application puts an object into the cache for distribution, GemFire serializes the data by taking these steps.
Implement the IGeodeSerializable Interface
To store your own data types in the cache, you implement the GemFire
IGeodeSerializable
interface.-
To use the
BankAccount
type, you must register it with the type system. Then, when an incoming stream contains aBankAccount
, it can be manufactured from the associatedTypeFactoryMethod.