function(opts) {
    this._client = Promise.promisifyAll(redis.createClient(opts));
    if (opts.db) {
      this._client.selectAsync(opts.db);
    }
    this.redisOpts = opts;
  }
function(opts) {
    this._client = Promise.promisifyAll(redis.createClient(opts));
    if (opts.db) {
      this._client.selectAsync(opts.db);
    }
    this.redisOpts = opts;
  }
function ( opts ) { this . _client = Promise . promisifyAll ( redis . createClient ( opts ) ) ; if ( opts . db ) { this . _client . selectAsync ( opts . db ) ; } this . redisOpts = opts ; }
Initialize redis client
@param {Object} opts Options for creating the redis client
Initialize redis client