We have implemented Redis cache in the C# application on existing methods like GetMatserData. There is an existing test case that is working fine on the local system after Redis implementation. But on Azure Pipeline we are getting the below error:
StackExchange.Redis.RedisConnectionException : It was not possible to connect to the redis server(s). Error connecting right now. To allow this multiplexer to continue retrying until it's able to connect, use abortConnect=false in your connection string or AbortOnConnectFail=false; in your code.
Please suggest.
Jon JoePosted Dec 23, 2022, 11:51 AM
Actually, Pipeline is not able to find the Redis server. Please guide where we need to install and how we can install Redis for the pipeline. So that pipeline finds that and runs the test case successfully.
Aravind GovindarajPosted Dec 22, 2022, 2:00 PM
Can you please check the release pipeline config and follow as stated below
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.
Srinivasan RamamoorthiPosted Dec 22, 2022, 1:50 PM
Check this kink
https://stackoverflow.com/questions/30895507/it-was-not-possible-to-connect-to-the-redis-servers-to-create-a-disconnected