C
C#4w ago
Swyftey

✅ FusionCache RemoveByTagAsync not removing proper tags?

Hi, I am trying to get an understanding of FusionCache to use it as a hybride cache (local memory and Redis). Currently, when I try to invalidate the cache, FusionCache adds the "tag indexes" to the cache, but the actual data keys are still present as well. I am not sure if this is supposed to happen, but I doubt. Does anybody know what I might be doing incorrectly? Thanks for any help!
The red-circled keys should not exist after RemoveByTagAsync is called.
No description
No description
5 Replies
Swyftey
SwyfteyOP4w ago
Just to add, if I am correct, the tags in the data are the same as the ones I am trying to use for invalidation
No description
Swyftey
SwyfteyOP4w ago
I think I found my answer, but am not sure. If anyone can confirm from experience, that would be great. But, apparently the invalidated keys do not get removed right away, but ignored to make the workload "lazy and adaptive".
Swyftey
SwyfteyOP4w ago
GitHub
RemoveByTag Clarifications · Issue #514 · ZiggyCreatures/FusionCache
Hello there, I've implemented a simplistic "ASP.net Session" type of cache with Fusion Cache. Everything is working great and I initially thought using the RemoveByTag() method would ...
Swyftey
SwyfteyOP4w ago
!solved !close
Accord
Accord4w ago
Closed!

Did you find this page helpful?