Created
October 8, 2010 03:53
-
-
Save davidascher/616330 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
for (var i=0; i < slides.length; i++) { | |
var slide = slides[i]; | |
redis.incr("ids::slides", function(err, sid) { | |
console.log("we've incremented sid to " + sid); | |
redis.set("slide:"+sid, slide, function(err, ok) { | |
console.log("Adding slide " + "slide:"+sid + " with score " + i); | |
redis.zadd(key, i, "slide:"+sid); | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment