index.js
function RedisTransport (opts) {
  this._container = opts.container || 'logs';
  this._length = opts.length || undefined;
  this._client = opts.client || redis.createClient(opts.port, opts.host);

  // Authorize cleint
  if (opts.hasOwnProperty('password')) {
    this._client.auth(opts.password);
  }

  // Set database index
  if (opts.hasOwnProperty('db')) {
    this._client.select(opts.db);
  }
}
function RedisTransport (opts) {
  this._container = opts.container || 'logs';
  this._length = opts.length || undefined;
  this._client = opts.client || redis.createClient(opts.port, opts.host);

  // Authorize cleint
  if (opts.hasOwnProperty('password')) {
    this._client.auth(opts.password);
  }

  // Set database index
  if (opts.hasOwnProperty('db')) {
    this._client.select(opts.db);
  }
}
function RedisTransport ( opts ) { this . _container = opts . container || 'logs' ; this . _length = opts . length || undefined ; this . _client = opts . client || redis . createClient ( opts . port , opts . host ) ; // Authorize cleint if ( opts . hasOwnProperty ( 'password' ) ) { this . _client . auth ( opts . password ) ; } // Set database index if ( opts . hasOwnProperty ( 'db' ) ) { this . _client . select ( opts . db ) ; } }
Create a new RedisTransport instance

@param {Object} opts Transport options object
@param {String} opts.container Redis key
@param {Number} opts.length List max length
@param {Object} opts.client Redis client instance
@param {String} opts.host Redis host
@param {Number} opts.port Redis port
@param {Number} opts.db Redis database index
@param {String} opts.password Redis password

@constructor
Create a new RedisTransport instance