Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
1 replies
72 views

Suppose a scenario where: you need to execute an expensive operation which can fail or succeed. the result of the operation is modeled by using a result object Result<T>. The result object ...
Enrico Massone's user avatar
1 vote
1 answer
268 views

I have a factory class that let's say for arguments sake returns a car: public class CarFactory : ICarFactory { private const string carKey = "MyCarKey"; private readonly ...
sr28's user avatar
  • 5,258
0 votes
1 answer
242 views

I have started using version 9.3.0 of HybridCache in .NET 9 (Microsoft.Extensions.Caching.Hybrid). It appears that the RemoveByTagAsync method doesn't work in Redis. The cache items remain after ...
Myles J's user avatar
  • 2,890
1 vote
1 answer
287 views

What's the default value for LocalCacheExpiration and Expiration in HybridCache. You can set these values in HybridCacheOptions.HybridCacheEntryOptions but the source doesn't mention the default value,...
ctyar's user avatar
  • 1,913
2 votes
1 answer
422 views

The Microsoft.Extensions.Caching.Hybrid package (available in .NET 9) provides a hybrid caching mechanism that allows you to combine both in-memory caching (for fast local access) and distributed ...
Maitri Dave's user avatar
3 votes
2 answers
229 views

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,758
4 votes
2 answers
3k views

I am trying to see if I can update a cached collection (in memory) using HybridCache. When using MemoryCache, I can do something like this, this was an easy "hack" to update collection ...
Zulander's user avatar
  • 834