I have the following piece of code to connect to azure redis cache.
public class CacheConnectionHelper { private static Lazy
for beginners who dive in other's code an face this problem:
if (RedisConn == null) { ConfigurationOptions option = new ConfigurationOptions { AbortOnConnectFail = false, EndPoints = { redisEndpoint } }; RedisConn = ConnectionMultiplexer.Connect(option); }