cache-mdw
v1.0.0
Published
A utility that uses node-cache in the hood to cache your routes calls
Downloads
3
Readme
Cache Middleware for Express
A simple caching middleware for Express applications, improving response time and reducing load.
Installation
npm install your-package-name
Usage
import express from 'express';
import { cacheMiddleware } from 'your-package-name';
const app = express();
app.use(cacheMiddleware({ stdTTL: 100 }));
app.get('/', (req, res) => {
res.send('Hello World!');
});
app.listen(3000);
License
This project is licensed under the MIT License.