Register Generic Classes
NCache also supports generic classes to be compact serialized. Generic classes
are configured in the same way as other classes. In addition, we also need to
<T> types for each Generic class.
Using NCache Web Manager
Launch NCache Web Manager by browsing to
<server-ip>:8251(Windows + Linux).
In the left navigation bar, click on Clustered Caches or Local Caches, based on the cache to configure.
Against the cache name, click on View Details.
This opens up the detailed configuration page for the cache. Go to the Advanced Settings tab and click on Compact Serialization in the left bar.
Click the Generic Type Handler button, a new Add Generic Type Handler window will open up.
Click Browse to select assembly.
All classes will be loaded in Class Name list box.
Select your class and click OK.
- Click on Save Changes to apply this configuration to the cache.