Skip to content

Cache.compute() returning null when computed value unchanged #12123

Closed Answered by wburns
jellisgwn asked this question in Q&A
Discussion options

You must be logged in to vote

This indeed seems to be a bug with the simple cache implementation. I am guessing not many people utilize simple cache with compute returning the same value and checking the returned value. Actually digging more, I think there is another issue where we aren't notifying listeners on the modification as well since a user could technically change the metadata (such as expiration) as well and they aren't notified of that.

I have created https://issues.redhat.com/browse/ISPN-15866 to address this.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jellisgwn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants