caffeine: Does caffeine cache return inconsistent result?
I am currently experiencing an issue where I save $['names'][*]
in caffeine cache and the value retrieved from the cache is $['names']
.
This issue seems to be intermittent. I debugged to the point where the data being saved in the cache and I saw that the correct value is being put in the cache while an incorrect value is being retrieved for some reasons.
I am using Spring boot version 2.2.5 and I have tried several versions of caffeine cache from 2.8.3 upwards.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 26 (13 by maintainers)
I was finally able to see the root cause of the issue. We mutate the JSON path somewhere else within the code, which is why what is being stored in the cache got mutated.