Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I point to the redis server? #47

Closed
fmmsilva opened this issue Oct 24, 2015 · 1 comment
Closed

How do I point to the redis server? #47

fmmsilva opened this issue Oct 24, 2015 · 1 comment

Comments

@fmmsilva
Copy link

I did not find any example

@stockholmux
Copy link
Collaborator

createClient will do it for you, or your can override the the function createClient for your own behavior. Really, it just needs to be at reds.client.

From the source:

**
 * Create a redis client, override to
 * provide your own behaviour.
 *
 * @return {RedisClient}
 * @api public
 */

exports.createClient = function(){
  return exports.client
    || (exports.client = redis.createClient());
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants