I'm an experienced PHP developer coming to grips with Node.js.
The following code illustrates a concept I'm struggling with. I know why it doesn't work, but I don't know how to refactor the code to solve the problem.
Basically, I'm querying rows from a DB, then I have to merge that information into existing data stored in Redis. Because of the callback system, I don't know how to make the variables in one callback available to the next.
I suspect I'll face-palm myself when I see how to work around this.