azure-redis-cache

SignalR cannot connect to Azure Redis on SSL

假装没事ソ 提交于 2019-12-05 06:29:39
I am currently hosting my redis cache server on Azure, and have signalR relying on it as the backbone using the following... GlobalHost.DependencyResolver.UseRedis("Server",port,"password","eventKey"); This works find on port 6379 (non-SSL) but my chat app breaks when I try to connect to the SSL port (6380) of my Azure Redis server, and the hub is never started. What could be the cause of this issue? Or am I doing something wrong? This is the error that appears on /signalr/connect in my browser net::ERR_CONNECTION_RESET You can try this: GlobalHost.DependencyResolver.UseRedis(new

Azure Redis StackExchange.Redis ConnectionMultiplexer in ASP.net MVC

落花浮王杯 提交于 2019-12-05 04:51:30
I have read that in order to connect to Azure Redis cache is best to follow this practice: private static ConnectionMultiplexer Connection { get { return LazyConnection.Value; } } private static readonly Lazy<ConnectionMultiplexer> LazyConnection = new Lazy<ConnectionMultiplexer>( () => { return ConnectionMultiplexer.Connect(connStinrg); }); And according to Azure Redis docs: The connection to the Azure Redis Cache is managed by the ConnectionMultiplexer class. This class is designed to be shared and reused throughout your client application, and does not need to be created on a per operation

Stackexchange.Redis timeouts & socketfailures

依然范特西╮ 提交于 2019-12-03 21:17:21
I am using Azure Redis (using Stackexchange.Redis) as a cache storage and its generally working fine. But I am getting timeouts errors now and then and I can't nail down why it is happening. My redis connection settings: value="dev.redis.cache.windows.net,ssl=true,password=secret,abortConnect=false,syncTimeout=3000" I am getting all these exception in the same second (multiple calls): [I get these on GET operations aswell. Almost all these exceptions are on StringSet & StringGet. I rarely get exceptions on HashSets or HashGets] Timeout performing SET {key}, inst: 1, mgr: ExecuteSelect, queue:

Azure Redis Cache - pool of ConnectionMultiplexer objects

为君一笑 提交于 2019-12-03 13:38:55
问题 We are using C1 Azure Redis Cache in our application. Recently we are experiencing lots of time-outs on GET operations. According to this article, one of possible solutions is to implement pool of ConnectionMultiplexer objects. Another possible solution is to use a pool of ConnectionMultiplexer objects in your client, and choose the “least loaded” ConnectionMultiplexer when sending a new request. This should prevent a single timeout from causing other requests to also timeout. How would

Azure Redis Cache max connections reached

与世无争的帅哥 提交于 2019-12-03 08:18:25
I am using Azure Redis Cache for storing some quick lookup data and this Cache is read/connected by 10 client applications. All the applications are written in .NET 4.6, and this includes ASP.NET MVC Web application, Web API and few worker roles that run in every 1 second. All clients are using StackExchange.Redis for connecting to the Cache. However, I get intermittent timeouts and I have observed that in Azure Portal, max connections has reached 1000 (for my pricing tier). Since I have only 10 client applications and none of these are multithreaded, what could create the 1000 connections to

Remove/Delete all/one item from StackExchange.Redis cache

核能气质少年 提交于 2019-12-03 04:06:45
问题 I am using StackExchange.Redis client with Azure Redis Cache Service. Here is my class, public class RedisCacheService : ICacheService { private readonly ISettings _settings; private readonly IDatabase _cache; public RedisCacheService(ISettings settings) { _settings = settings; var connectionMultiplexer = ConnectionMultiplexer.Connect(settings.RedisConnection); _cache = connectionMultiplexer.GetDatabase(); } public bool Exists(string key) { return _cache.KeyExists(key); } public void Save

Azure Redis Cache - pool of ConnectionMultiplexer objects

限于喜欢 提交于 2019-12-03 03:51:22
We are using C1 Azure Redis Cache in our application. Recently we are experiencing lots of time-outs on GET operations. According to this article , one of possible solutions is to implement pool of ConnectionMultiplexer objects. Another possible solution is to use a pool of ConnectionMultiplexer objects in your client, and choose the “least loaded” ConnectionMultiplexer when sending a new request. This should prevent a single timeout from causing other requests to also timeout. How would implementation of a pool of ConnectionMultiplexer objects using C# look like? Edit: Related question that I

Remove/Delete all/one item from StackExchange.Redis cache

柔情痞子 提交于 2019-12-02 17:26:40
I am using StackExchange.Redis client with Azure Redis Cache Service. Here is my class, public class RedisCacheService : ICacheService { private readonly ISettings _settings; private readonly IDatabase _cache; public RedisCacheService(ISettings settings) { _settings = settings; var connectionMultiplexer = ConnectionMultiplexer.Connect(settings.RedisConnection); _cache = connectionMultiplexer.GetDatabase(); } public bool Exists(string key) { return _cache.KeyExists(key); } public void Save(string key, string value) { var ts = TimeSpan.FromMinutes(_settings.CacheTimeout); _cache.StringSet(key,

Azure Redis Cache - Multiple errors TimeoutException: Timeout performing GET {key}

不问归期 提交于 2019-12-01 11:31:00
问题 We deployed our application to Azure. It is using the Azure Redis Cache and we are experiencing quite a few timeouts. Namely: [TimeoutException: Timeout performing GET textobjectDetails__23290_TextObject, inst: 1, mgr: Inactive, queue: 5, qu=0, qs=5, qc=0, wr=0/0, in=56864/0] [TimeoutException: Timeout performing GET featured_series_CachedSeries, inst: 1, mgr: Inactive, queue: 4, qu=0, qs=4, qc=0, wr=0/0, in=44470/0] [TimeoutException: Timeout performing GET SeriesByFranchiseId_1_CachedSeries

StackExchange.Redis server.Keys(pattern:“IsVerySlow*”)

萝らか妹 提交于 2019-11-30 11:46:31
I'm new to redis so I'm doing something wrong, I'm sure: I've stored roughly 16,000 key/values in Azure Redis. I used the following to write the keys/values foreach (var worksheet in wksList) { var wksYYMM = string.Format("{0}{1:00}", worksheet.ReviewDt.Year, worksheet.ReviewDt.Month); var wksKey = string.Format("{0}:{1}:{2}", provCode, wksYYMM, worksheet.AcctNbr); string jsonStr = JsonConvert.SerializeObject( MakeWsListDto(worksheet, provCoderList, rvrList)); cache.StringSet(wksKey, jsonStr); } so my keys look like this: "AP:201401:AZ5798BK" When I try a lookup like: var keys = server.Keys