Express-style lru cache middleware
Built with ❤︎ by tiaanduplessis and contributors
$ npm install moola-lru
# OR
$ yarn add moola-lru
const express = require('express')
const app = express()
const cache = require('moola-lru')
app.use(cache())
app.get('/', (req, res) => {
res.sendCached({test: true})
})
app.listen(5000)
Middlware build on lru. Please see available options.
Contributions are welcome!
- Fork it.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Or open up a issue.
Licensed under the MIT License.