3
4

1 回答 1

0
  1. I don't know how the redis driver for node.js handles this, but if they are clever they use some the cursors redis offers to loop through the results. This means the do not fetch all results at the beginning, they fetch them when you access them.

  2. The garbage collection is handled by the V8 (the underlying JavaScript engine of node.js) There is plenty of documentation on how it works (just search for "Garbage Collection V8"):

于 2012-06-15T16:52:50.410 回答