Questions tagged [azure-redis-cache]

Azure Redis Cache is based on the popular open-source Redis cache. It gives you access to a secure, dedicated Redis cache, managed by Microsoft and accessible from any application within Azure.

347 questions
0
votes
1 answer

Why isn't DeleteKey working, for Azure RedisCache?

I'm using Azure RedisCache, and when I call the following command: _cache.KeyDelete(key, CommandFlags.HighPriority) The key is not deleted and there are no errors. Similarly, nor does the following work if a key/value is already…
Le-roy Staines
  • 2,037
  • 2
  • 22
  • 40
0
votes
1 answer

Get list of all Redis keys and last access time

How can you get Redis to display all of it's current keys along side the last time they were accessed? Ideally in some kind of machine readable form but I'll take what I can get.
Nathan
  • 435
  • 4
  • 16
0
votes
2 answers

Azure Redis - how to simulate session_end event in ASP.NET app when mode=Custom?

The organisation I am working with uses Azure Redis to store session information for its ASP.NET site, which is new ground for me (no experience in this whatsoever). I need to fire some code when a session ends (either times out, is abandoned etc)…
0
votes
1 answer

How to update 'enableNonSslPort' field of redis cache using azure cli?

I tried the below command to update the enableNonSslPort field to true of redis cache named 'emp' which has 'group1' has resource group. az redis update --name 'emp' --resource-group 'group1' --enableNonSslPort 'true' I m getting error, Try this:…
Yogesh
  • 155
  • 1
  • 9
0
votes
1 answer

C# - The best way to create Redis connection pools?

In order to improve application performance, thought of trying & creating the redis connection pool to share the load, instead of rotating single same redis connection to cater all the incoming requests, as the per the suggestion by Redis team…
0
votes
0 answers

Restore dump.rdb file in Azure Cache for Redis(basic tier)

I'm working on migrating our existing on-prem redis to azure cache for redis. We have selected a basic tier plan. I would like to restore the backup(dump.rdb) taken from our on-prem redis to azure redis. Tried several python SDKs but didn't work.…
0
votes
0 answers

Flush Redis keys at the time of fail-back

I am working on Disaster Recovery for my application deployed on Azure. I am using following architecture. Left side of Azure front door is primary region and right side is secondary region. Suppose disaster happened in primary region then Azure…
0
votes
2 answers

Stackexchange Redis exception: an unknown error occurred when writing the message

.Net core 2.1 web-api uses below redis nuget package "StackExchange.Redis" Version="2.1.55" and connects to Azure Redis P1 tier, Redis version 4.0.14 On appsettings.config, "RedisConfiguration": { "ConnectionString":…
EnthuAz
  • 67
  • 1
  • 1
  • 9
0
votes
0 answers

Redis Keys Not expiring after setting Expiration Time

Currently i am developing an .Netcore WebAPI. I am using Azure Cache for Redis & Nuget for this Microsoft.Extensions.Caching.StackExchangeRedis. I have below code in StartUp services.AddDistributedRedisCache(ch => ch.Configuration =…
0
votes
1 answer

Can't connect to Azure Cache for Redis using SSL

I'm trying to connect to an Azure Cache For Redis resource from an asp.net MVC application using StackExchange.Redis and it only works if I set the port to 6379 and ssl=false in the connection string. public class RedisCacheHelper { static…
levis
  • 367
  • 7
  • 17
0
votes
1 answer

Spring Reactive Redis: PubSub does not work if the publisher or subscriber does not run from the same machine

I have two spring boot services running in two different VMs on two different virtual network. One service runs on and pushes notifications to a channel in Azure RediscCache. Optional hasMessageSent =…
Venkatesh Laguduva
  • 13,448
  • 6
  • 33
  • 45
0
votes
2 answers

Can I write around 10MB of value against a single key in azure redis cache

Can I write around 10MB of value (JSON Data as a string) against a key (string - xyz) in Azure redis cache Size- Standard 1 GB Version - 4.0.14 I am able to insert 3MB of value , but while inserting 7MB of value it gives network error. I am using…
Sagar
  • 645
  • 2
  • 9
  • 31
0
votes
0 answers

Spring-Redis-Cache : Taking while to reconnect if we reboot redis on azure

We are using Lettuce recative redis with spring boot version 2.3.1-Release.We see a strange issue when we deploy our application on azure which connects to redis cache on azure.It is taking more than 15 min to reconnect if we reboot our redis…
Rocky4Ever
  • 828
  • 3
  • 12
  • 35
0
votes
0 answers

Spring boot + lettuce connection retry mechanism for "Connection reset by peer"

I'm using spring-boot in version 2.3.2 where I'm trying to cache some method results in redis. Application is using Lettuce as redis client. Redis is hosted on Azure. Everything seems to be working, but if there is no activity for some time (I think…
bilak
  • 4,526
  • 3
  • 35
  • 75
0
votes
1 answer

Get database info from Azure Cache for Redis

I'm using StackExchangeRedis in Asp.Net core 3.1 app via microsoft.extensions.caching.stackexchangeredis nuget v3.1 package. I'm on standard tier pricing plan of Azure Cache for Redis. As per the docs by default there are 16 databases and the…
Sam
  • 519
  • 1
  • 7
  • 32