HybridCache cache not removed by tag #58857
Labels
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
feature-caching
Includes: StackExchangeRedis and SqlServer distributed caches
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Status: Resolved
Is there an existing issue for this?
Describe the bug
HybridCache RemoveByTagAsync is not removing cache with certain tag when using MemoryCache
Expected Behavior
When running the controller method again, the cache should reset and get new data from myService because the cache should be removed for "identifier" as it has the tag "test" .
The cache is not removed.
Steps To Reproduce
Controller Method
Trying to remove cache entry:
` await _cache.RemoveByTagAsync(id.ToString());
Yes, I confirmed that the GUID is the same.
Exceptions (if any)
.NET Version
9.0.100-rc.2.24474.11
Anything else?
No response
The text was updated successfully, but these errors were encountered: