An open API service indexing awesome lists of open source software.

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

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')
})
```