title: C# Redis Cache get multiple entries
body: <p>So I'm using &quot;StackExchange.Redis&quot; and I was wondering if I can get multiple values by key pattern or by key list in order to have one trip to the redis cache and get all the data that I need.</p>
  <p>I already tried to use &quot;star&quot; in the key when using the &quot;GetObject&quot; method something like this:</p>
  <pre><code>User user = RedisContext.Cache.GetObject(&quot;User*&quot;);
  </code></pre>
  <p>but this returns null.</p>
  <p>And I also tried to get all the keys by pattern which did work but I couldn't get the values in one go, like this:</p>
  <pre><code>var endpoint = RedisContext.GetConnectionMultiplexer().GetEndPoints().First();
  var keys = RedisContext.GetConnectionMultiplexer().GetServer(endpoint.ToString()).Keys(pattern: &quot;User*&quot;);
  List&lt;string&gt; keyList = new List&lt;string&gt;();
  foreach (var _key in keys)
  {
        keyList.Add(_key);
  }
  
  List&lt;User&gt; users = RedisContext.Cache.GetObjectsByTag&lt;dynamic&gt;(keyList.ToArray());
  </code></pre>
  <p>But this gives me an exception.
  Is there something that I'm missing?</p>