Skip to content

Instantly share code, notes, and snippets.

@edw
Created April 6, 2011 16:22
Show Gist options
  • Save edw/905967 to your computer and use it in GitHub Desktop.
Save edw/905967 to your computer and use it in GitHub Desktop.
var handler = function(req, res) {
var channel = req.params.channel;
client.lrange(channel, 0, -1, function(err, myRange) {
res.end(JSON.stringify(myRange));
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment