• Products
  • Solutions
  • Customers
  • Resources
  • Company
  • Pricing
  • Download
Try Playground
Show / Hide Table of Contents

.NET Client API Prerequisites

In order to practically utilize the powerful features of .NET client-side NCache, make sure to implement the prerequisites discussed below.

.NET Client Prerequisites

  • Install either of the following NuGet packages in your .NET client application:
    • Enterprise: Alachisoft.NCache.SDK
    • Professional: Alachisoft.NCache.Professional.SDK
  • Include the following namespaces in your application:
    • Alachisoft.NCache.Client
    • Alachisoft.NCache.Runtime
    • Alachisoft.NCache.Runtime.Exceptions
  • The cache must be running.
  • Make sure that the data being added is serializable.
  • To ensure the operation is fail-safe, it is recommended to handle any potential exceptions within your application, as explained in Handling Failures.
  • To handle any unseen exceptions, refer to the Troubleshooting section.

Feature Specific NuGet Packages

Aside from the NuGet Packages employed in most features, you should add the following packages based on the feature you intend to use with your .NET client application.

Note

Any feature not mentioned in the list below either does not work with the specified feature or only requires the general NuGet Packages that we've previously discussed.

  • For CLR Procedures: [Deprecated]
    • Enterprise: CLRStoredProcedure.NCache
  • For LINQ Queries:
    • Enterprise: Linq.NCache

Feature Specific Namespaces

Aside from the namespaces employed in most features, you should add the following namespaces/packages/classes based on the feature/API you intend to use and whether or not they require them.

Note

Any feature not mentioned in the list below either does not work with the specified feature or only requires the general namespaces/packages/classes.

  • For Tags, Named Tags, Locking, and Expirations:
    • Alachisoft.NCache.Runtime.Caching
  • For Cache Data Dependencies, e.g., KeyDependency, FileDependency, and Database Dependencies: [Deprecated]
    • Alachisoft.NCache.Runtime.Dependencies
  • For JSON Data: [Deprecated]
    • Alachisoft.NCache.Runtime.JSON
  • For Data Structures:
    • Alachisoft.NCache.Client.DataTypes
    • Alachisoft.NCache.Client.DataTypes.Collections
    • Alachisoft.NCache.Client.DataTypes.Counter
    • Alachisoft.NCache.Runtime.Caching
    • Alachisoft.NCache.Runtime.Events
  • For SQL Queries:
    • Alachisoft.NCache.Client.Services
    • Alachisoft.NCache.Runtime.Caching
  • For LINQ Queries:
    • Alachisoft.NCache.Linq
  • For Event Notifications
    • Alachisoft.NCache.Runtime.Events
  • For Continuous Query: [Deprecated]
    • Alachisoft.NCache.Runtime.Events
  • For Pub/Sub:
    • Alachisoft.NCache.Runtime.Caching

See Also

Create Cache
Connecting to Cache
Insert Data to Cache

In This Article
  • .NET Client Prerequisites
  • Feature Specific NuGet Packages
  • Feature Specific Namespaces
  • 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