Unregister Non-Generic Classes
You can remove the serialized objects from a class. Following are the steps to remove serialized objects from a cache.
Using the NCache Management Center
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251
on Windows and Linux.Against the cache name, click on "..." and select Stop.
Once cache is stopped, click 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 class 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 cmdlet 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 Alachisoft.NCache.Sample.Data.Customer
See Also
Register Non-Generic Classes
Register Generic Classes
Register Generic Classes using Generic Type Handler
Register Classes for Portable Data Sharing