Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Created February 27, 2014 22:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miguelmota/9261474 to your computer and use it in GitHub Desktop.
Save miguelmota/9261474 to your computer and use it in GitHub Desktop.
module.exports = {
DB1: redis.createClient(),
DB2: redis.createClient(),
DB3: redis.createClient(),
init: function(next) {
var select = redis.RedisClient.prototype.select;
require('async').parallel([
select.bind(this.DB1, 1),
select.bind(this.DB2, 2),
select.bind(this.DB3, 3)
], next);
}
};
require('./redis').init(function(err) {
if (err) throw err;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment