redis-factory
A factory for creating a redis client from a connection string.
npm)
Installation (via$ npm install redis-factory
Why?
The de facto node.js redis library library doesn't support creating a client using a redis://username:password@host:port/
-style connection string. This adds that support without hardcoding the version of the redis library you are using, so you an opt into using alternatives such as romis.
Usage
{ 'use strict'; var redis = redisFactory = connectionString = processenvREDIS_URI || 'redis://localhost'; moduleexports = connectionString; };