var URL   = require('url')
  , redis = require('redis');

module.exports = function (config) {
  var client, url, port, host, db, pass;

  if (config = config || {}) {
    try {

      url     = URL.parse(config && config.url || process.env.REDIS_PORT || 'redis://localhost:6379');
      port    = url.port;
      host    = url.hostname;
      db      = config.db;
      auth    = config && config.auth;

      options = {
        no_ready_check: true
      }

      client = redis.createClient(port, host, options);

      if (auth) {
        client.auth(auth, function () {});
      }


      if (db) {
        client.select(db);
      }

    } catch (e) {
      throw new Error(e);
    }
  }

  return module.exports = client;
};

@@ -127,11 +127,20 @@
 db, 
-pas
+auth, option
 s;%0A%0A
@@ -457,24 +457,25 @@
 true%0A      %7D
+;
 %0A%0A      clie

Define variables that are used but not defined