.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 clientapplication:
- Enterprise: Alachisoft.NCache.SDK
- Professional: Alachisoft.NCache.Professional.SDK
- Include the following namespaces in your application:
- 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:
- Enterprise: CLRStoredProcedure.NCache
- For LINQ Queries:
- Enterprise: Linq.NCache
- For Full Text Searching with NCache Distributed Lucene:
- Enterprise: Lucene.Net.NCache
- Professional: Lucene.Net.NCache.Professional
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:
- For Cache Data Dependencies, e.g., KeyDependency, FileDependency, and Database Dependencies:
- For JSON Data:
- For Data Structures:
- For SQL Queries:
- For LINQ Queries:
- For Event Notifications and Continuous Query:
- For Pub/Sub:
- For Full Text Searching with NCache Distributed Lucene:
- For Lucene Search:
- For Lucene Facet:
- For Geo-Spatial API