Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Error using Redis Cache on Azure

$
0
0

We have a redis cache hosted on Azure and we use the following as a service in our .net core application:

services.AddSingleton<IConnectionMultiplexer>(provider =>
ConnectionMultiplexer.Connect(Configuration.GetConnectionString("RedisConnection"))
);

Our connection string is similar to the following:

ourserver.redis.cache.windows.net:6380,password=******=,ssl=True,abortConnect=False,syncTimeout=4000

in getting from cache we don't face problems but if we add to cache we sometimes get the following error:

"StackExchange.Redis.RedisConnectionException: It was not possible to
connect to the redis server(s); to create a disconnected multiplexer,
disable AbortOnConnectFail. ConnectTimeout"

I have read solutions like setting `abortconnect` to `false` and increasing the timeout but I have implemented it like the connection string above.

If you have suggestions or you think that we have a problem with the connection string kindly advise.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>