const NodeCache = require('node-cache') code example Example: nodejs cache data npm install node-cache --save