Skip to main content

All Questions

Tagged with
1 vote
1 answer
41 views

How to use LuaScript with dynamic KEYS and ARGV collections in StackExchange.Redis without losing script caching?

I'm using StackExchange.Redis and want to execute a Lua script that performs SADD operations on multiple sets, where both the keys and values are passed dynamically. Here's the Lua script I'm trying ...
Marat's user avatar
  • 23
0 votes
1 answer
78 views

Implementation of Sliding expiry in redis cache (IDistributedCache) in ASP.NET

I am migrating my caching mechanism from Memory cache to Redis in a .NET application and using IDistributedCache for abstraction. In Memory cache. Now that I’m switching to Redis, I want to understand ...
Sachin Ram's user avatar
0 votes
1 answer
82 views

Does StackExchange Redis Cache recreate connection on Error in the SetAsync method?

We use the Redis cache for our web-api app. We use the Microsoft.Extensions.Caching.StackExchangeRedis. After some works were made on Redis server, our app has failed to write to the cache: "...
Eugeniy  Maksimov's user avatar
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: ...
Mensur's user avatar
  • 1,308
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; ...
ANEES's user avatar
  • 318
1 vote
1 answer
124 views

Redis cache busting - "dynamic" keys

We're using Redis for caching in our .NET 8 APIs (Azure Redis for some, Enterprise Redis for others). Certain API endpoints take query string parameters, and these parameters are factored into the ...
pikkabird's user avatar
  • 137
0 votes
1 answer
680 views

Triggering eager refresh with FusionCache from consumer side

I have a service that can produce some data. And some others that are consuming that data. The consumers can request the data over masstransit. But as producing that data is relatively expensive and ...
ZorgoZ's user avatar
  • 3,598
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 ...
CaglarAyhan's user avatar
3 votes
2 answers
132 views

How can I use NodaTime with redis?

I am using the HybridCahce implementation from .net 9, with a DragonFly instance as the distributed cache, and works as expected with: builder.Services.AddStackExchangeRedisCache(options => options....
ZorgoZ's user avatar
  • 3,598
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....
Khang Viet's user avatar
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....
Shad's user avatar
  • 4,464
1 vote
2 answers
73 views

Can't setup mocked Redis IDatabase using Moq

This is my test for my cache in program: [Fact] public async Task Cache_Works_Correctly() { const string testkey = "69"; const string testvalue = "Nice"; var ...
HellAbyss 's user avatar
2 votes
1 answer
62 views

Is using the FireAndForget flag inside a StackExchange.Redis transaction meaningful?

If I use CommandFlags.FireAndForget inside a transaction with StackExchange.Redis, does this flag actually do anything? Or does the transaction completion wait until the Fire and Forget command has ...
Simon Hardman's user avatar
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:...
nop's user avatar
  • 6,439
0 votes
0 answers
234 views

How to use redis ( with client certificate requirement ) for session state in ASP.NET on .NET 4.8?

We are currently using Redis for session state and cache management along with SignalR, and everything is working fine, because our current Redis server configuration allows connections without a ...
Ashish Ahir's user avatar

15 30 50 per page
1
2 3 4 5
35