title: function is not returning data
body: <p>I have the following code </p>
  
  <pre><code>    var redis = require("redis"),
      client = redis.createClient();
  
  var getuser = function(username) {
    var userhash={};
    client.hgetall("users."+username, function(err, user) {
      userhash=user;
    });
    return userhash;
  };
  user_rahul = { 
       username: 'rahul',
       queueno: 1,
       sessionId: '6604353811126202'
  
     };
  user_namita = {
    username: 'namita',
    sessionId:'2'
  };
  client.hmset('users.rahul', user_rahul);
  client.hmset('users.namita', user_namita);
  var username = "rahul"; // From a POST perhaps
    var user1=getuser(username);
    console.log(user1);
  client.hgetall("users." + username, function(err, user) {
    console.log(user);
  
  });
  </code></pre>
  
  <p>i have created a getuser function to return the value of particular username in userhash but it is not returning please help in finding why it is not returning .
  what should i do to get the value return ?</p>