Skip to content

Instantly share code, notes, and snippets.

//with a previously create client
client.set('some-key','42',function(err) {
if (err) {
throw err; /* in production, handle errors more gracefully */
} else {
client.get('some-key',function(err,value) {
if (err) {
throw err;
} else {