Unregister Non-Generic Classes
You can remove, i.e., unregister, serialized objects from a class. Following are the steps to remove serialized objects from a cache using the NCache Mangement Center or Command Line Tools as detailed below.
Using the NCache Management Center
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251
on Windows and 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.
Select the classes to be removed and click on the Remove button.
- Click on Save Changes to apply this configuration to the cache.
Using Command Line Tools
The Remove Compact Type tool enables the users to remove the objects that are already defined as serializable.
The following command removes the compact serializable class ‘Products’ from the cache configuration of a cache named demoCache.
remove-compacttype -cachename demoCache -class com.Data.Product
See Also
Register Non-Generic Classes
Register Generic Classes
Register Generic Classes using Generic Type Handler
Register Classes for Portable Data Sharing