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
59
votes
10 answers

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

I have the following piece of code to connect to azure redis cache. public class CacheConnectionHelper { private static Lazy lazyConnection = new Lazy(() => { return…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
59
votes
5 answers

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

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…
Imran Qadir Baksh - Baloch
  • 32,612
  • 68
  • 179
  • 322
37
votes
1 answer

Differences between "Microsoft.Extensions.Caching.Redis" and "Microsoft.Extensions.Caching.StackExchangeRedis.Redis"?

I am a little bit lost. I am reading Microsoft documentation for ASP.NET Core caching using Redis. And the documentation suggests to use Microsoft.Extensions.Caching.StackExchangeRedis which is an open source third party library. But I've seen some…
Ghassan Karwchan
  • 3,355
  • 7
  • 37
  • 65
20
votes
3 answers

StackExchange.Redis server.Keys(pattern:"IsVerySlow*")

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 =…
Weej
  • 1,012
  • 2
  • 8
  • 24
18
votes
3 answers

Azure: Redis vs Table Storage for web cache

We currently use Redis as our persistent cache for our web application but with it's limited memory and cost I'm starting to consider whether Table storage is a viable option. The data we store is fairly basic json data with a clear 2 part key which…
Simon
  • 1,613
  • 1
  • 12
  • 27
17
votes
1 answer

Data in Azure Redis Cache

Is there an easy way to see what's in my Redis Cache on Azure? I mean some type of tool? I know how to do it programmatically but sometimes while writing code, I want to be able to quickly see what's in my Redis cache without having to switch to…
Sam
  • 26,817
  • 58
  • 206
  • 383
16
votes
7 answers

No connection is available to service this operation: when using Azure Redis Cache

I have the following code which I use to get information from the cache. I dont know if maybe my app is opening too many connections or just this error is due to a transient failure on azure redis cache. This is the stack…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
14
votes
1 answer

Why are connections to Azure Redis Cache so high?

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…
Christian
  • 4,345
  • 5
  • 42
  • 71
13
votes
1 answer

Storing Lua scripts with stackexchange.redis

I'm trying to use StackExchange.Redis on Azure WebApp and need to run some Lua scripts. The recommended way is to load the scripts to the server but I have difficulty understanding the correct pattern. The way I think it should be done is on WebApp…
ziv
  • 3,641
  • 3
  • 21
  • 26
13
votes
2 answers

Azure Redis Cache - pool of ConnectionMultiplexer objects

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…
Jakub Holovsky
  • 6,543
  • 10
  • 54
  • 98
12
votes
2 answers

What is the ideal value size range for redis? Is 100KB too large?

Is there an upper limit to the suggested size of the value stored for a particular key in Redis? Is 100KB too large?
Balanjaneyulu K
  • 3,660
  • 5
  • 24
  • 45
12
votes
3 answers

How to clear Azure Redis Cache?

I would like to know how to clear Azure Redis Cache from portal or any other easy way to clear all the keys ? I am using azure redis cache for my azure cloud service and I would like to know any easy way to clear all the keys for my azure redis…
Bitsian
  • 2,238
  • 5
  • 37
  • 72
9
votes
2 answers

Azure Redis StackExchange.Redis ConnectionMultiplexer in ASP.net MVC

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
hyperN
  • 2,674
  • 9
  • 54
  • 92
7
votes
2 answers

Azure App Service: How can I determine which process is consuming high CPU?

UPDATE: I've figured it out. See the end of this question. I have an Azure App Service running four sites. One of the sites has two deployment slots in addition to the primary one. Recently I've been seeing really high CPU utilization for the App…
6
votes
1 answer

Difference between Azure Reddis Cache and Azure CDN

I need to implement a cache in my application using Azure Cache for Reddis but I went to some blogs where I have an option to store my responses or data using Azure CDN. Could someone suggest me what is the difference between them? As per my…
Avinash
  • 79
  • 1
  • 7
1
2 3
23 24