metamaps--metamaps/realtime/node_modules/redis-url
2014-02-10 02:03:06 -05:00
..
.npmignore changed realtime folder 2014-02-10 02:03:06 -05:00
index.js changed realtime folder 2014-02-10 02:03:06 -05:00
package.json changed realtime folder 2014-02-10 02:03:06 -05:00
README.md changed realtime folder 2014-02-10 02:03:06 -05:00
test.js changed realtime folder 2014-02-10 02:03:06 -05:00

redis-url

Usage

// use $REDIS_URL or redis://localhost:6379
var redis = require('redis-url').connect();

// specify a url
var redis = require('redis-url').connect(process.env.SOMEREDIS_URL);

Url format

redis://[db-number[:password]@]host:port[?option=value]

db-number is integer from 1 to 15

License

MIT