title: Stop a Redis hget on first match
body: <p>I'm writing a real-time matching webapp with Node.js, Express &amp; Redis and I need your help.</p>
  
  <pre><code>app.get('/match', function(req, res) {
  
      db.hkeys('testCollection', function(err, keys){
          console.log(keys.length + " keys in Redis:");
  
          keys.forEach(function (keyPlayer, i){
              db.hget('testCollection', keyPlayer, function(err, obj){
                  var testObj = JSON.parse(obj);
                  if ([conditions]){
                      console.log('--- A match has been found! ---');
                      console.log('--- Details of match ---');
                      console.log('ID: ' + keyPlayer);
                      console.log('Name: ' + testObj.name);
                      res.render('match', {
                          match : testObj
                      });
                  }
  
                  else {
                      console.log('*** No match has been found ***');
                      if ((i+1) == keys.length){
                          console.log('=== No player match found in DB ===');
                      };
                  }
              });
          });
      });
  });
  </code></pre>
  
  <p>How can I make this line of code stop when the conditions in the [if] are hit? Is it possible or should I look for a different solution?</p>
  
  <pre><code>db.hget('testCollection', keyPlayer, function(err, obj){
  </code></pre>