I'm getting a Timeout error while trying to run this code :
List<HashEntry> entries = new List<HashEntry>();
for (i = 0; i < 10000; i++)
{
var extension = new Extension
{
Name = RandomString(30),
LastName = RandomString(30),
Number = random.Next(),
};
entries.Add(new HashEntry(extension.Name, JsonConvert.SerializeObject(extension)));
}
cache.HashSet("extensions", entries.ToArray());
This exception occurs on the last line :
An unhandled exception of type 'System.TimeoutException' occurred in StackExchange.Redis.dll
Additional information: Timeout performing HMSET extensions, inst: 0, mgr: Inactive, queue: 2, qu=1, qs=1, qc=0, wr=1/1, in=0/0