Replies: 1 comment 1 reply
-
Hi @moadib2k and thanks for using FusionCache! What you are describing seems in fact strange, and not the expected behavior. Having said that I have tests that specifically verify the Would you be able to provide me with a MRE? That would really help me in troubleshooting your scenario. Thanks. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My backend is running with two different types of clients. One part is running in long lasting containers, the other part is running in lambdas. I saw the addition of SkipMemoryCache in .22 and put a test implementation in place.
I do not think this feature does what I was thinking. I am attempting to have my containers use the memory cache backed by the distributed cache and to have my lambdas use skip the memory cache and only use the distributed cache. These are two different parts of the system sharing the same cache data.
This feature appears to work on a cache item entry level.
This is my config
Initially, I set up fusion with no memory cache (did not register the type) and received an error. I added the memory cache registration back in and looking at the logs on item creation, it appears that it still adds the entry to the memory cache.
When retrieving the item it looks like it only checks the distributed cache
Also, when I get an entry that was added to distributed cache from a container that had items set to store in both it gets them from memory first.
[DBG] FUSION [N=FusionCache] (O=0HMU0VQDK7RLU K=/TradeCache/MYSQL): calling GetOrSet FEO[LKTO=/ DUR=04:00:00 SKM=N SKD=N SKDRWS=N DDUR=/ JIT=0 PR=N FS=Y FSMAX=08:00:00 DFSMAX=/ FSTHR=30s FSTO=50ms FHTO=/ TOFC=Y DSTO=/ DHTO=/ ABDO=N SBN=N BBO=Y]
[VRB] FUSION [N=FusionCache] (O=0HMU0VQDK7RLU K=/Key): trying to get from memory
[DBG] FUSION [N=FusionCache] (O=0HMU0VQDK7RLU K=/Key): memory entry found
[VRB] FUSION [N=FusionCache] (O=0HMU0VQDK7RLU K=/Key): using memory entry
[DBG] FUSION [N=FusionCache] (O=0HMU0VQDK7RLU K=/Key): return
Beta Was this translation helpful? Give feedback.
All reactions