azure-redis-cache

How to reconnect redis client after redis server reboot/scale

别来无恙 提交于 2021-02-11 12:55:52
问题 I have an azure app service (based on Docker) that uses Redis as a cache memory. When I reboot/scale redis server, redis client inside azure app service lose connection with server and throws the following exception: Timeout awaiting response (outbound=0KiB, inbound=0KiB, 2852ms elapsed, timeout is 2000ms), command=SETEX, next: GET test, inst: 0, qu: 0, qs: 45, aw: False, rs: ReadAsync, ws: Idle, in: 0, serverEndpoint: Unspecified/redis-server-com:6380, mgr: 10 of 10 available, clientName:

Differences between Microsoft.Extensions.Cashing.Redis and Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache

徘徊边缘 提交于 2020-03-23 12:01:06
问题 I am a little bit lost. I am reading Microsoft documentation for ASP.NET Core chaching using Redis. And the documentation suggests to use Microsoft.Extensions.Cashing.StackExchangeRedis which is an open source third party library. But I see some other tutorials are using Microsoft.Extensions.Cashing.Redis, which is a more native asp.net core. And at the end they both use the same interface IDistributedCache Why I need StackExchangeRedis and what advantages it has over Microsoft.Extensions

Redis Keyspace Notifications with flushdb

社会主义新天地 提交于 2020-01-21 10:35:47
问题 The keyspace notifications have been essential for a recent web api I've been developing. We have redis setup in azure. The api mostly works, we use notifications to figure out if data on memory cache needs to be updated. Right now, we want to handle notifying the flush event to clear local memory cache if redis database is flushed. But we can not get the flushdb event by Keyspace notification. And the keyspace events is enable as "AKE". "AKE" string means all the events. PS: we can get

Redis Keyspace Notifications with flushdb

不羁的心 提交于 2020-01-21 10:35:17
问题 The keyspace notifications have been essential for a recent web api I've been developing. We have redis setup in azure. The api mostly works, we use notifications to figure out if data on memory cache needs to be updated. Right now, we want to handle notifying the flush event to clear local memory cache if redis database is flushed. But we can not get the flushdb event by Keyspace notification. And the keyspace events is enable as "AKE". "AKE" string means all the events. PS: we can get

Splitting Azure Redis Cache into Primary and secondary cache

江枫思渺然 提交于 2020-01-16 16:14:14
问题 Team, Beginner in Azure. I am running a Azure web app referencing a azure redis cache. Now i have a requirement whereby i have to load the colleagues data into the primary cache upon the first load and any updates to the colleagues count is loaded in the secondary cache. Once completed a swap is done where by the change in the value of the primary key value. So i have implemented in such a way that it will first identify which is primary and which is secondary. ( Please note that i am not

Splitting Azure Redis Cache into Primary and secondary cache

試著忘記壹切 提交于 2020-01-16 16:13:58
问题 Team, Beginner in Azure. I am running a Azure web app referencing a azure redis cache. Now i have a requirement whereby i have to load the colleagues data into the primary cache upon the first load and any updates to the colleagues count is loaded in the secondary cache. Once completed a swap is done where by the change in the value of the primary key value. So i have implemented in such a way that it will first identify which is primary and which is secondary. ( Please note that i am not

How to setup Azure Redis cache with Rails

混江龙づ霸主 提交于 2020-01-05 09:11:18
问题 I have a Rails app, and I want to use Azure Redis cache. So far as I got information from internet, I have created a Redis cache on Azure and I have installed Redis gem and I configured in following in redis.rb $redis = Redis.new(:host => 'xxxxx.redis.cache.windows.net', :port => 6380, :db => 10, :password => "xxxxxxxxxxxxxxxxxxxxxxx", :use_ssl => true) and after this I don't know how to map it with my database and how to use it. 回答1: Based on my understanding, it sounds like you want to know

How to setup Azure Redis cache with Rails

谁说我不能喝 提交于 2020-01-05 09:10:06
问题 I have a Rails app, and I want to use Azure Redis cache. So far as I got information from internet, I have created a Redis cache on Azure and I have installed Redis gem and I configured in following in redis.rb $redis = Redis.new(:host => 'xxxxx.redis.cache.windows.net', :port => 6380, :db => 10, :password => "xxxxxxxxxxxxxxxxxxxxxxx", :use_ssl => true) and after this I don't know how to map it with my database and how to use it. 回答1: Based on my understanding, it sounds like you want to know