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

前端 未结 7 1651
刺人心
刺人心 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:30

    The error you are getting is usually a sign that you have not set abortConnect=false in your connection string. The default value for abortConnect is true, which makes it so that StackExchange.Redis won't reconnect to the server automatically under some conditions. We strongly recommend that you set abortConnect=false in your connection string so that SE.Redis will auto-reconnect in the background if a network blip occurs.

提交回复
热议问题