Created
August 23, 2012 11:08
-
-
Save thomasfr/3435622 to your computer and use it in GitHub Desktop.
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
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 | |
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
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