Permalink
Browse files

renamed to pass, removed logging and added info in readme

Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
  • Loading branch information...
1 parent 8386369 commit 0d7b1e8bd9d85db8329d3071338068e3403f3d52 @garrensmith garrensmith committed with Apr 14, 2011
Showing with 3 additions and 4 deletions.
  1. +1 −0 Readme.md
  2. +2 −4 lib/connect-redis.js
View
@@ -16,6 +16,7 @@ via npm:
- `host` Redis server hostname
- `port` Redis server portno
- `db` Database index to use
+ - `pass` Password for Redis authentication
- ... Remaining options passed to the redis `createClient()` method.
## Example
View
@@ -29,10 +29,8 @@ var RedisStore = module.exports = function RedisStore(options) {
options = options || {};
Store.call(this, options);
this.client = new redis.createClient(options.port, options.host, options);
- if (options.pwd) {
- client.auth(options.pwd, function () {
- console.log('Redis authenticated');
- });
+ if (options.pass) {
+ client.auth(options.pwd, function () { });
}
if (options.db) {

0 comments on commit 0d7b1e8

Please sign in to comment.