Try Playground
Show / Hide Table of Contents

Registering Non-Generic Classes [Deprecated]

You can use either of the two ways described below to register your classes for compact serialization.

Important

For .NET, before deploying your DLL files, ensure you have the appropriate .NET Version installed as discussed in the NCache Installation Guide.

Using Management Center

  • Launch the NCache Management Center by browsing https://localhost:8251 or https://<public-ip>:8252 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.

View Details Compact Serialization Web

  • 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 Add Types button, and a new Select Compact Classes dialog box will open.

Add Types for Compact Serialization Web

  • Against Library, click on Browse and select the required file which contains the classes. The classes will be listed from the selected assembly in the Loaded Class list box.

  • Select the desired class, which you want to register with NCache for compact serialization, and click Add Classes.

Add Classes for Compact Serialization Web

  • Click OK to add class. It lists fully qualified name of the selected class in the Compact Serialization tab.

Configure Compact Serialization Web

  • Click on Save Changes to apply this configuration to the cache.

Using Command Line

The Add Compact Type tool enables the user to register a custom object for compact serialization for the given caches.

This command defines a compact type for demoCache. You can define further types one by one repeating the step for other types.

Add-CompactType -CacheName demoCache -AssemblyPath C:\Data.dll -Class Alachisoft.NCache.Sample.Data.Customer

See Also

Unregister Non-Generic Classes
Register Generic Classes
Register Generic Classes using Generic Type Handler
Register Classes for Portable Data Sharing

In This Article
  • Using Management Center
  • Using Command Line
  • See Also

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Professional
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - 2025. All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top