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 NCache Web Manager
Launch NCache Web Manager by browsing to http://localhost:8251 or
<server-ip>:8251on 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.
Remove-CompactType cmdlet enables the users to remove the objects which are already defined as serializable.
The following command removes the compact serializable class ‘Products’ from the cache configuration of a cache named demoClusteredCache.
Remove-CompactType -CacheName demoClusteredCache -Class Alachisoft.NCache.Sample.Data.Customer