I am trying to set key-value pairs in Azure Redis cache using StackExchange.Redis client in Visual Studio. This is the code I have:
ConnectionMultiplexer connection=ConnectionMultiplexer.Connect("connection_name,ssl=true,password=some_password");
IDatabase cache = connection.GetDatabase();
for (int i = 0; i < 500; i++)
{
cache.StringSet("key" + i, "value" + i);
}
However, I get TimeoutException while the code is setting some random key value pair. What could be the issue and how should I resolve it? Thanks.
The error message should include a bunch of numbers. If you can tell me those numbers, I might be able to say more.