https://github.com/confuser/node-uber-cache-express
A connect style route caching middleware for express using uber-cache
https://github.com/confuser/node-uber-cache-express
Last synced: 9 months ago
JSON representation
A connect style route caching middleware for express using uber-cache
- Host: GitHub
- URL: https://github.com/confuser/node-uber-cache-express
- Owner: confuser
- Created: 2014-03-19T15:57:14.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-19T16:05:37.000Z (about 12 years ago)
- Last Synced: 2025-08-30T09:51:29.562Z (10 months ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Uber Cache Express
A connect style route caching middleware for express using [Uber Cache](https://github.com/serby/uber-cache)
## Usage
```js
var expressCache = new require('uber-cache-express')
, uberCacheOptions = {}
, cache = expressCache(uberCacheOptions)
app.get('/', cache(5000), function (req, res) {
console.log('I should only be called once every 5 seconds')
res.send('Hai World')
})
```