Created
April 22, 2010 21:58
-
-
Save jpoz/375879 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
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