So, to make things short, it can help . The RedisConnection class recreates the connection when a connection is lost and unable to reconnect automatically. We will be using StackExchange.Redis library to connect to Redis. Here are the examples of the csharp api class StackExchange.Redis.ConnectionMultiplexer.Dispose() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate. If you have SSL enabled please use the below setting to connect to . Two methods to resolve StackExchange.Redis.RedisTimeoutException in C# ... StackExchange.Redis General Guidance. If you want to learn how to install Redis, visit my previous post on Intro to Redis for .NET Developers - Installing Redis on Windows. Multiplexing: it's complicated. 4 comments . J'utilise netcore2.1 webapi , stackexchange 2.2.4 (également essayé 2.0.513) obtient toujours cette erreur, ne savez pas comment résoudre ce problème. The central object in StackExchange.Redis is the ConnectionMultiplexer class in the StackExchange.Redis namespace; this is the object that hides away the details of multiple servers. For more information, see StackExchange.Redis and the code in a . By voting up you can indicate which examples are most useful and appropriate. Instead, create an instance at the beginning and then reuse the object throughout your process. Because the ConnectionMultiplexer does a lot, it is designed . Proxy. And any time we saw a Timeout like yours, it was due to a different system clogging the pipe. The Keys () call will select either the KEYS or SCAN command based on the version of the Redis server. StackExchange.Redis.ConnectionMultiplexer.GetEndPoints (bool) Here are the examples of the csharp api class StackExchange.Redis.ConnectionMultiplexer.GetEndPoints (bool) taken from open source projects. Stackexchange.redis: RedisConnectionException at each first Connect ... Configure your ThreadPool settings to avoid . Because there are lots of different ways to configure redis, StackExchange.Redis offers a rich configuration model, which is invoked when calling Connect (or ConnectAsync ): var conn = ConnectionMultiplexer.Connect(configuration); The configuration here can be either: a ConfigurationOptions instance. 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. There is no significant load on the application machines and no significant load on the redis machines. One can download StackExchange. SupportsServerApi ()) /// Get the hash-slot associated with a given key, if applicable.