title: Why async/await doesn't synchronizes ioredis get method execution inside a forEach loop?
body: <p>Async/Await approach:</p>
  
  <pre><code>Ids = ['abc','lmn','xyz']
  
  Ids.forEach(function (resId){
      console.log('inside loop');
      async function operation(){
          var curObj = await redisClient.get('key1');
          console.log('done waiting');
    }
  }
  </code></pre>
  
  <p>Callback approach on another function:</p>
  
  <pre><code>function operation(cb) {
           redisClient.get('key1', cb);
         }
  operation(function(){
      console.log('inside operation');
  });
  </code></pre>
  
  <p>I wanted wait till the curObj variable sets and execute the code sequentially to print the 'done waiting'. I used async/await but it doesn't seem to work as expected. Then I used callback with the same get method still the same. I use ioredis library.</p>
  
  <p>What have I done wrong?</p>