Server Side API Prerequisites
In order to practically utilize the powerful features of Server Side NCache, make sure to implement the prerequisites discussed below.
Prerequisites
- Install either of the following NuGet packages in your application based on your NCache edition:
- Enterprise: Alachisoft.NCache.SDK
- Professional: Alachisoft.NCache.Professional.SDK
- Include the following namespaces in your application based on the feature you intend to use:
- 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 Namespaces
Aside from the namespaces employed in most features, you should add the following namespaces/packages 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.
- For Cache Loader and Refresher:
- For Data Source Providers:
- For Custom Dependency:
- For WAN Replication:
- For Entry Processor:
- For Map Reduce:
- For Aggregation in MapReduce
- For Dynamic Compact Serialization:
See Also
How to Connect to Cache
Error Handling in Cache
Troubleshooting