Node.js Client Side Prerequisites
To practically utilize the powerful features of client-side NCache with your Node.js client, make sure to implement the prerequisites discussed below.
Node.js Client Prerequisites
- Install and include either of the following modules in your Node.js client application:
- Enterprise: ncache-client
- Professional: ncache-professional-client
- Include the following class in your application:
- The cache must be running.
- The application must be connected to cache before performing the operation.
- For API details refer to the links provided with every code snippet.
- 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/classes in your Node.js client application based on the feature/API you intend to use.
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, and Expirations:
- For Cache Data Dependencies e.g. KeyDependency, FileDependency, and Database Dependencies:
- For Data Structures:
- For Event Notifications and Continuous Query:
- For Pub/Sub: