Skip to content

Instantly share code, notes, and snippets.

@roykolak
Created June 26, 2011 18:57
Show Gist options
  • Save roykolak/1047856 to your computer and use it in GitHub Desktop.
Save roykolak/1047856 to your computer and use it in GitHub Desktop.
Store = function(client) {
return {
addBuddyWaiting: function(buddy, callback) {
client.rpush('buddies', buddy, callback);
},
getBuddiesWaiting: function(callback) {
client.lrange('buddies', 0, -1, callback);
}
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment