title: MSET in StackExchange.Redis
body: <p>Is there a method for to carry out <code>MSET</code> in Redis from StackExchange.Redis.</p>
  
  <p>After referring <a href="https://stackexchange.github.io/StackExchange.Redis/PipelinesMultiplexers" rel="nofollow noreferrer">documentation</a>, the below code I wrote is carrying out <code>StringSetAsync</code> to add multiple key-value pairs in Redis. Do we have something like <code>IDatabase.StringSet(RedisKey[], RedisValue[])</code> ?</p>
  
  <pre><code>  public void Add(IEnumerable&lt;CacheKeyValue&gt; cacheKeyValues)
    {
        var tasks = new List&lt;Task&gt;();
  
        foreach(var kv in cacheKeyValues.ToList())
        {
            tasks.Add(((Task&lt;bool&gt;)DB.StringSetAsync(kv.Key, ((RedisValue)kv.Value))).ContinueWith((b) =&gt; kv.Status = true));
        }
  
        Task.WaitAll(tasks.ToArray());
    }
  </code></pre>