Home > OS >  How to fix timeout connect redis .net core?
How to fix timeout connect redis .net core?

Time:12-23

I have issue connect redis. What is the solution to this problem? enter image description here

CodePudding user response:

Because StackExchange.Redis uses a single thread, if a request takes too long, it will block subsequent requests, so it adds a request timeout limit.

Solution:

1.To replace the driver, you can try to use csredis:

https://github.com/2881099/csredis

2.The redis operation is modified to all asynchronous:

ThreadPool.SetMinThreads(Int32, Int32) Method

  • Related