azure-redis-cache

Why are connections to Azure Redis Cache so high?

醉酒当歌 提交于 2019-11-27 21:17:12
问题 I am using the Azure Redis Cache in a scenario of high load for a single machine querying the cache. This machine roughly gets and sets about 20 items per second. During daytime this increases, during nighttime this is less. So far, things have been working fine. Today I realized that the metric of "Connected Clients" is extremely high, although I only have 1 client that just constantly Gets and Sets items. Here is a screenshot of the metric I mean: My code looks like this: public class

It was not possible to connect to the redis server(s); to create a disconnected multiplexer

邮差的信 提交于 2019-11-27 12:50:13
问题 I have the following piece of code to connect to azure redis cache. public class CacheConnectionHelper { private static Lazy<ConnectionMultiplexer> lazyConnection = new Lazy<ConnectionMultiplexer>(() => { return ConnectionMultiplexer.Connect(SettingsHelper.AzureRedisCache); }); public static ConnectionMultiplexer Connection { get { return lazyConnection.Value; } } } And I use it this way public static List<Models.Module> GetModules() { IDatabase cache = CacheConnectionHelper.Connection