Skip to content

Instantly share code, notes, and snippets.

@supershabam
Created August 20, 2013 19:50
Show Gist options
  • Save supershabam/6286313 to your computer and use it in GitHub Desktop.
Save supershabam/6286313 to your computer and use it in GitHub Desktop.
pooldis multi
client = pooldis instance
var multi = client.multi()
var scardPromise = multi.scard("bigset")
multi.dbsize() // don't have to capture the promise
multi.exec().then(function(values) {
// list of values like with node_redis
}, function(err) {
})
// callback only style
var multi = client.multi()
multi.scard("bigset", function(err, value) {
// executed once exec is run
})
multi.dbsize()
multi.exec(function(err, replies) {
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment