title: How to connect to redis cache via redis URL using StackExchange.Redis?
body: <p>Currently, I am using <strong>ServiceStack.Redis</strong> to connect to Redis Cache server. The redis cache URL structure is like: <em><code>redis://f:UIOPabcdXYZ@ip-172-31-81-144.manager.{domain}.io:33004</code></em></p>
  
  <p>Below is a sample code to connect to Redis Cache using <em>ServiceStack.Redis</em></p>
  
  <pre><code>var redisClientManagerPool = new RedisManagerPool(ConfigManager.RedisCacheUrl);
  
  using (var client = redisClientManagerPool.GetClient())
  {
      //SetClientData(key, client, data);
  }
  </code></pre>
  
  <p>But the free version has certain restrictions and once it reaches the limit, it gives error like</p>
  
  <blockquote>
    <p>The free-quota limit on '6000 Redis requests per hour' has been
    reached. Please see <a href="https://servicestack.net" rel="nofollow noreferrer">https://servicestack.net</a> to upgrade to a
    commercial license or visit <a href="https://github.com/ServiceStackV3/ServiceStackV3" rel="nofollow noreferrer">https://github.com/ServiceStackV3/ServiceStackV3</a> to
    revert back to the free ServiceStack v3</p>
  </blockquote>
  
  <p>I want to use <code>StackExchange.Redis</code> to connect to redis cache. But I didn't get any code reference how to use the redis URL from <a href="https://stackexchange.github.io/StackExchange.Redis/Basics" rel="nofollow noreferrer">https://stackexchange.github.io/StackExchange.Redis/Basics</a> . </p>
  
  <p>I am looking for any code reference to use redis cache URL like <em><code>redis://f:UIOPabcdXYZ@ip-172-31-81-144.manager.domain.io:33004</code></em> to connect to redis cache server by using <code>StackExchange.Redis</code> nuget. Any help is appreciated.</p>
  
  <p><strong>Note:</strong> The current used library is .NET Standard 2.0 version of ServiceStack.Redis. The nuget name is <code>ServiceStack.Redis.Core</code> version 5.7.0.</p>