Skip to content

Instantly share code, notes, and snippets.

@thomasfr
Created August 23, 2012 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasfr/3435622 to your computer and use it in GitHub Desktop.
Save thomasfr/3435622 to your computer and use it in GitHub Desktop.
help: Connect with the `redis-cli` cli tool:
help:
$ redis-cli -h char.redistogo.com -p 9056 -a 1234567890abcdefghijklm
help:
help: Connect with the `redis` module:
help:
var redis = require('redis');
var client = redis.createClient('char.redistogo.com', 9056);
client.auth('1234567890abcdefghijklm', function (err) {
if (err) { throw err; }
// You are now connected to your redis.
});
help:
info: Nodejitsu ok
var redis = require('redis');
var client = redis.createClient(9056, 'char.redistogo.com'); // arguments are interchanged
client.auth('1234567890abcdefghijklm', function (err) {
if (err) { throw err; }
// You are now connected to your redis.
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment