Cache layer compatible with express framework.
Install the main package:
npm install node-cache-layer --save
Install the handler desired to store the cache:
Redis:
npm install cache-layer-redis --save
MongoDB:
npm install cache-layer-mongodb --save
FileSystem:
npm install cache-layer-filesystem --save
Seamless integration without any major change in your application. It caches the entire body response and the headers as well.
import cache from "node-cache-layer"
const app = express();
app.use(cache());
Complete options: