Skip to content

Latest commit

 

History

History
122 lines (99 loc) · 3.04 KB

README.md

File metadata and controls

122 lines (99 loc) · 3.04 KB

Node.js Cache Layer

Cache layer compatible with express framework.

Install

First step:

Install the main package:

npm install node-cache-layer --save

Second step:

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

Usage

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: