title: .NET Core Distributed Redis Cache with Password
body: <p>I’m using the distributed Redis Cache to cache temporally some User-Data. Currently I’m testing the Application locally in my Development Environment. The Redis-Server on my local Machine has no Password but in Production I’m using a random generated Password.</p>
  
  <p>How can I connect to the Redis-Server with a Password?</p>
  
  <p>My Startup.cs:</p>
  
  <pre><code>   //Add Redis
      services.AddDistributedRedisCache(options =&gt;
      {
          options.Configuration = "127.0.0.1:6379";
          options.InstanceName = "Portal";
      });
  </code></pre>