All Questions
Tagged with stackexchange.redis .net
127 questions
0
votes
0
answers
88
views
What could be causing my Redis/Valkey/ElastiCache timeout error?
I'm using a Valkey ElastiCache with StackExchange.Redis on .NET. It's usually working but sometimes I'll get this message:
The message timed out in the backlog attempting to send because no connection ...
0
votes
1
answer
36
views
How does a Redis cluster scale and work along with .NET IDistributedCache along with a cloud based app service?
I have used Redis for caching in .NET using the IMemoryCache implementations for both Redis and SQL Server. It is straight forward and no problem.
I've been trying to understand IDistributedCache ...
0
votes
0
answers
54
views
StackExchange.Redis using TLS Certificate Errors
I have installed Redis locally and configured TLS:
redis.conf
tls-cert-file ~/my.crt.pem
tls-key-file ~/my.key.pem
tls-ca-cert-file ~/ca_root.crt
I can use redis-cli to connect to it just fine by:
...
0
votes
0
answers
34
views
Unable to deserialize the data into TValue
I have following code, which is setting & fetching data from Redis DB.
public void BulkSet(Dictionary<TKey, TValue> keyValues)
{
if (keyValues == null || keyValues.Count == 0) return;
...
0
votes
0
answers
58
views
ConnectionMultiplexer exception caused when trying to invoke webAPI endpoints -
I am facing an exception(ConnectionMultiplexer) message when trying to access a .NetCore 8 webAPI endpoint. I tried to use repositoryPattern in my project so there's a GenericRepository interface. I ...
1
vote
0
answers
505
views
Redis Sentinel: The ConnectionMultiplexer is not a Sentinel connection. Detected as: Standalone Error
Our project is a .NET 8 API project, and we are using Redis version 2.8.0 as a caching mechanism. However, we are randomly encountering an error that shows "Sentinel: The ConnectionMultiplexer is ...
0
votes
1
answer
308
views
Redis timeout when there are a large number of keys
My WebAPI is written using the .NET framework 4.7.2 and i also use RedisStackChange 2.8.0.
I had a problem when the number of keys in redis reached about 7 million keys:
StackExchange.Redis....
0
votes
0
answers
166
views
Collect StackExchange.Redis metrics
I need to collect basic redis connection metrics, at least message duration. Is there any way to do it for StackExchange.Redis library and its ConnectionMultiplexer?
I've found OpenTelemetry....
3
votes
1
answer
183
views
Why does the KeyAsync loop hang when scanning Redis keys with StackExchange.Redis?
I'm trying to scan all Redis keys that match a specific pattern using the StackExchange.Redis library. However, my code hangs at the await foreach statement while scanning the keys. Here’s what I have:...
0
votes
0
answers
68
views
Subscribe to receive notifications from Redis cluster using StackExchange.Redis
I'm trying to write a straightforward .Net app that will subscribe to a cluster of Redis nodes, to receive change notifications.
The cluster configuration is the following:
➜ redis-cli -h 10.0.255.86
...
0
votes
1
answer
395
views
.NET Amazon Elasticache - Redis cluster random timeout errors
Recently we introduced storing user session data on Amazon's ElastiCache through Redis Cache. I was a little worried of the speed and latency issues of this solution as before the session data was ...
1
vote
1
answer
81
views
Handle Redis values from processing more than once in multi-instance deployment
In .NET API I have a background service that executes every 0.1 seconds, this gets all values from a redis hash key, and runs a for loop with those and then processes those inside the for loop.
The ...
0
votes
1
answer
160
views
Azure Redis Cache not found in AzureClientFactoryBuilder Isolated .NET 8
I'm working on an Isolated .NET 8 Azure Functions project
I want to use Azure Redis Cache using the IServiceCollection and AzureClientFactoryBuilder in the program.cs file.
I'm able to use ...
1
vote
0
answers
66
views
Is there a way to add List<T> to redis in c#?
Is there a way to add List<T> to Redis in c# , but then when I retrieve the List from Redis , I should be able to do pagination and sorting?
I'm aware of the ability to store in sorted sets ...
-3
votes
2
answers
176
views
Redis Stream I need Event Driven Architecture,
When any new message received in the stream, on that time OnMessageReceived event should trigger.
public event EventHandler<MqMessageReceivedEventArgs> OnMessageReceived;
var result = await ...