title: Node.js & redis / zadd objects to a set
body: <p>I have the following code:</p>
  
  <pre><code>var db = require("redis");
  var dbclient1 = db.createClient();
  
  dbclient1.zadd("myprivateset", 3, {"guid":"abab-baba", "data-persistent":"xxxx", "size":"20"})
  dbclient1.zadd("myprivateset", 2, {"guid":"abab-baba3", "data-persistent":"xxxx", "size":"20"})
  dbclient1.zrangebyscore("myprivateset", 1, 4)
  dbclient1.hgetall("myprivateset", function(err, rep){
   console.log(rep);
  });
  </code></pre>
  
  <p>I wish to store my objects (in JSON format) in a sorted set, which determine by the score (3 &amp; 2 in our case).</p>
  
  <p>For some reason, when I print this table (<code>rep</code>), I get undefined.</p>
  
  <p>What I do wrong?</p>