forked from rauchg/weplay
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jiahao Dai
committed
Oct 12, 2015
1 parent
668cb06
commit 4761c70
Showing
1 changed file
with
1 addition
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
|
||
var redis = require('redis'); | ||
var uri = process.env.WEPLAY_REDIS_URI || 'localhost:6379'; | ||
var auth_password = process.env.WEPLAY_REDIS_AUTH || ''; | ||
var pieces = uri.split(':'); | ||
|
||
module.exports = function(){ | ||
var client = redis.createClient(pieces[1], pieces[0], { return_buffers: true, no_ready_check: true, auth_pass: auth_password }); | ||
return client; | ||
return redis.createClient(pieces[1], pieces[0], { return_buffers: true, no_ready_check: true, auth_pass: auth_password }); | ||
}; |