Node.js Development Environment
This section explains how to set up a Node.js development environment to employ this client.
Supported Node.js Versions
The supported Node.js versions are as follows:
Product | Versions |
---|---|
Node.js | v14.15.3 or later. |
Install NPM Packages for Node.js Development Environment
NCache provides NPM packages that contain various libraries for NCache to work in your client and server environments.
Node.js Data Caching
To install npm packages for NCache, run the following commands in a shell environment. This will install all NCache client libraries in your application required for Node.js development environment:
- For NCache Enterprise::
npm install ncache-client
- For NCache Professional:
npm install ncache-professional-client
Node.js Sessions
You can also add and include the following module in your application for Node.js Sessions:
npm install ncache-sessions
Specify Modules
You also need to include the given module(s) in your application to get started with Node.js development:
- For NCache Enterprise::
const ncache = require('ncache-client');
- For NCache Professional:
const ncache = require('ncache-professional-client');