it uses an error first callback style, so reply is actually the variable slot for the error.. Which is undefined because there isn't an error..
do: rclient.hincrby "SERVERS", "IP", 1, (err, reply) -> console.log reply instead On Monday, July 2, 2012 at 2:53 PM, Angelo Chen wrote: > Hi, > > this works, but why reply is undefined? > > rclient.hincrby "SERVERS", "IP", 1, (reply) -> > console.log reply > thanks, > > angelo > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > (mailto:[email protected]) > To unsubscribe from this group, send email to > [email protected] > (mailto:[email protected]) > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
