title: StackExchange.Redis: Batch access for multiple hashes
body: <p>So I need to access in bulk many different hashes (in StackExchange.Redis, I have different RedisKey's).</p>
  <p>What is the best (fastest) way to do it?
  For example, for these two possible implementations, is either correct? Which one works better?</p>
  <p>1.</p>
  <pre><code>List&lt;Task&lt;HashEntry[]&gt;&gt; list = new List&lt;Task&lt;HashEntry[]&gt;&gt;();
  List&lt;RedisKey&gt; keys; //Previously initialized list of keys
  foreach (var key in keys)
  {
      var task = db.HashGetAllAsync(key);
      list.Add(task);
  }
  await Task.WhenAll(list);
  </code></pre>
  <ol start="2">
  <li></li>
  </ol>
  <pre><code>List&lt;Task&lt;HashEntry[]&gt;&gt; list = new List&lt;Task&lt;HashEntry[]&gt;&gt;();
  List&lt;RedisKey&gt; keys; //Previously initialized list of keys
  IBatch batch = db.CreateBatch();
  foreach (var key in keys)
  {
      var task = batch.HashGetAllAsync(key);
      list.Add(task);
  }
  batch.Execute();
  </code></pre>