Skip to content

Instantly share code, notes, and snippets.

@jpoz
Created April 22, 2010 21:58
Show Gist options
  • Save jpoz/375879 to your computer and use it in GitHub Desktop.
Save jpoz/375879 to your computer and use it in GitHub Desktop.
var kiwi = require('kiwi'),
redis = kiwi.require('redis-client'),
client = redis.createClient(),
sys = require('sys');
client.rpush("rev::revisions", "party", function(err, value) {
client.lrange("rev::revisions", 0, 1, function(err, data) {
sys.puts( JSON.stringify(data) ) // [{"0":112,"1":97,"2":114,"3":116,"4":121,"length":5}]
client.close();
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment