Commit 233bc6ff authored by John Crepezzi's avatar John Crepezzi
Browse files

Merge pull request #77 from abn/redis-auth

Support authentication for redis store if password provided
parents 6c313893 c92ab077
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -25,6 +25,10 @@ RedisDocumentStore.connect = function(options) {
  var port = options.port || 6379;
  var index = options.db || 0;
  RedisDocumentStore.client = redis.createClient(port, host);
  // authenticate if password is provided
  if (options.password) {
      RedisDocumentStore.client.auth(options.password);
  }
  RedisDocumentStore.client.select(index, function(err, reply) {
    if (err) {
      winston.error(