Skip to content

Instantly share code, notes, and snippets.

@jhsu
Created March 17, 2011 15:38
Show Gist options
  • Save jhsu/874537 to your computer and use it in GitHub Desktop.
Save jhsu/874537 to your computer and use it in GitHub Desktop.
var redis = require('redis');
var client = redis.createClient();
client.set('test', 'hello, world!');
console.log(client.get('test'));
// => undefined
client.get('test', redis.print);
// => Reply: hello, world!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment