It was not possible to connect to the redis server(s); to create a disconnected multiplexer

前端 未结 7 1652
刺人心
刺人心 2020-12-13 13:05

I have the following piece of code to connect to azure redis cache.

   public class CacheConnectionHelper
    {
        private static Lazy

        
7条回答
  •  执念已碎
    2020-12-13 13:43

    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);
            }
    

提交回复
热议问题