Redis Express Middleware
This is a simple express middleware for redis
and provides a shared redis db
object across all requests.
Basic Usage
app; app;
Advanced Usage
Any options available to the redis.createClient
method may be used when instantiating the redis middleware:
var options = return_buffers: true auth_pass: 'superSecretPassword';app;
The name string allows you to specify a custom varaible name to provide the middleware on
for example providing the name 'redis'
would allow you to access redis via res.redis