Ejemplo n.º 1
0
module.exports = function (options) {
    options = _.defaults(options, {
        port: 6379,
        host: '127.0.0.1'
    });

    var client = redis.createClient.call(null, options.port, options.host, _.omit(options, 'port', 'host'));
    client.on('error', function (error) {
        throw error;
    });

    return client;
};