You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: providers/go-feature-flag/README.md
+55-1Lines changed: 55 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,8 +47,62 @@ You will have a new instance ready to be used with your `open-feature` java SDK.
47
47
|**`keepAliveDuration`**|`false`| keepAliveDuration is the time in millisecond we keep the connexion open. _(default: 7200000 (2 hours))_|
48
48
|**`apiKey`**|`false`| If the relay proxy is configured to authenticate the requests, you should provide an API Key to the provider. Please ask the administrator of the relay proxy to provide an API Key. (This feature is available only if you are using GO Feature Flag relay proxy v1.7.0 or above). _(default: null)_|
|**`cacheConfig`**|`false`| If cache custom configuration is wanted, you should provide a [Caffeine](https://github.com/ben-manes/caffeine) configuration object. _(default: null)_|
50
+
|**`cacheConfig`**|`false`| If cache custom configuration is wanted, you should provide a [Caffeine](https://github.com/ben-manes/caffeine) configuration object. _(default: null)_|
51
51
|**`flushIntervalMs`**|`false`| interval time we publish statistics collection data to the proxy. The parameter is used only if the cache is enabled, otherwise the collection of the data is done directly when calling the evaluation API. _(default: 1000 ms)_|
52
52
|**`maxPendingEvents`**|`false`| max pending events aggregated before publishing for collection data to the proxy. When event is added while events collection is full, event is omitted. _(default: 10000)_|
53
53
|**`flagChangePollingIntervalMs`**|`false`| interval time we poll the proxy to check if the configuration has changed.<br/>If the cache is enabled, we will poll the relay-proxy every X milliseconds to check if the configuration has changed. _(default: 120000)_|
54
54
|**`disableDataCollection`**|`false`| set to true if you don't want to collect the usage of flags retrieved in the cache. _(default: false)_|
55
+
56
+
## Breaking changes
57
+
58
+
### 0.4.0 - Cache Implementation Change: Guava to Caffeine
59
+
60
+
In this release, we have updated the cache implementation from Guava to Caffeine. This change was made because Caffeine is now the recommended caching solution by the maintainers of Guava due to its performance improvements and enhanced features.
61
+
62
+
Because of this, the cache configuration on `GoFeatureFlagProviderOptions` that used Guava's `CacheBuilder` is now handled by `Caffeine`.
63
+
64
+
#### How to migrate
65
+
66
+
Configuration cache with Guava used to be like this:
For a complete list of customizations options available in Caffeine, please refer to the [Caffeine documentation](https://github.com/ben-manes/caffeine/wiki) for more details.
Copy file name to clipboardExpand all lines: providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/controller/CacheController.java
0 commit comments