title: Connect to Redis Cache Azure in ASP.NET 5 (ASP.NET Core 1.0)
body: <p>I'm trying to connect to Redis Azure. I have read it <a href="https://azure.microsoft.com/en-us/documentation/articles/cache-dotnet-how-to-use-azure-redis-cache/" rel="nofollow">this article</a> and see the <a href="https://github.com/aspnet/Caching/tree/dev/samples" rel="nofollow">examples in the official Repo</a>. </p>
  
  <p>I have this code:</p>
  
  <pre><code>var cache = new RedisCache(new RedisCacheOptions
              {
                  Configuration = "mysamplecache.redis.cache.windows.net,port: 6380,ssl = true,ConnectTimeout = 10000,abortConnect=false"
              });
  </code></pre>
  
  <p>But it's not working... I don't know how to put the connection string and password, and InstanceName parameter... </p>
  
  <p>I'm using this package:</p>
  
  <pre><code>"Microsoft.Extensions.Caching.Redis": "1.0.0-*"
  </code></pre>
  
  <p>The error:</p>
  
  <blockquote>
    <p>RedisConnectionException: No connection is available to service this
    operation: EVAL</p>
  </blockquote>
  
  <p>What is the correct way? </p>
  
  <p>Thanks!!</p>