(change) Change cache in openfeature java provider #1985
Labels
change
This is a change in the code that should not affect the users
java
open-feature
p3
Longer term priority
provider
Related to a openfeature provider
Motivation
As mentioned by @liran2000 in this PR comment open-feature/java-sdk-contrib#821 (comment) the cache system used in the java provider is from
guava
and they discouraged using it and recommend usingcaffeine
instead.Since it is a breaking change we didn't want to introduce it to the provider.
When going for version
1.0.0
of the provider we should consider changing the cache mechanism in favour ofcaffeine
.Requirements
We should refactor the provider to use
caffeine
instead of theguava
cache.To do so we will have to introduce a breaking change in the
GoFeatureFlagProviderOptions
file, to change the type of thecacheBuilder
option.When doing that we should ensure a proper documentation on how to migrate from
guava
tocaffeine
.The text was updated successfully, but these errors were encountered: