-
Notifications
You must be signed in to change notification settings - Fork 10.6k
HybridCache cache not removed by tag #58857
Copy link
Copy link
Closed
Labels
✔️ Resolution: DuplicateResolved as a duplicate of another issueResolved as a duplicate of another issueStatus: Resolvedarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-cachingIncludes: StackExchangeRedis and SqlServer distributed cachesIncludes: StackExchangeRedis and SqlServer distributed caches
Metadata
Metadata
Assignees
Labels
✔️ Resolution: DuplicateResolved as a duplicate of another issueResolved as a duplicate of another issueStatus: Resolvedarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-cachingIncludes: StackExchangeRedis and SqlServer distributed cachesIncludes: StackExchangeRedis and SqlServer distributed caches
Type
Fields
Give feedbackNo fields configured for issues without a type.
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