April 2017
Intermediate to advanced
564 pages
24h 7m
English
Once the cache is created, we can configure our .NET Core client application, probably an ASP.NET Core one, by adding a NuGet package as StackExchange.redis. Once the package is downloaded, we can use the Redis client API to use the Redis Cache that we have created on Azure.
To connect to the Redis Cache, we can add a namespace StackExchange, Redis, and create a connection class using ConnectionMultiplexer, as follows:
ConnectionMultiplexer connection = ConnectionMultiplexer.Connect( "myrediscache.redis.cache.windows.net:6380, password=VOBP7q7Msw8bSy6+u0=,ssl=True,abortConnect=False");
ConnectionMultiplexer takes the connection string, which can be obtained from the Redis Cache ...
Read now
Unlock full access