redisc
v0.2.0
Published
create redis clients with connection strings
Readme
redisc
create redis clients with connection strings
usage
var redisc = require('redisc')
redisc('redis://localhost/0')
// => redis client
redisc('redis://authkey@localhost/1')
// => authenticated redis clientapi
redisc(connStr: String) => RedisClient
Returns an initialized RedisClient, using the npm [redis](https://npmjs.org/package/redis) module
redisc.parse(connStr: String) => Object
Returns an object with the various redis connection properties:
{
auth: String?,
host: String, // default 'localhost'
port: Number, // default 6397
db: Number // default 0
}installation
$ npm install rediscrunning the tests
From package root:
$ npm install
$ npm testcontributors
- jden [email protected]
license
MIT. (c) 2013 Agile Diagnosis [email protected]. See LICENSE.md
