Skip to content

Commit

Permalink
Reduserer levetiden på cache til 90 sekunder
Browse files Browse the repository at this point in the history
  • Loading branch information
espenwaaga committed Oct 9, 2023
1 parent 7b52fcc commit 858438a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public final class TokenXExchangeKlient {
private TokenXExchangeKlient() {
var provider = ConfigProvider.getOpenIDConfiguration(OpenIDProvider.TOKENX);
this.tokenEndpoint = provider.map(OpenIDConfiguration::tokenEndpoint).orElse(null);
this.obocache = new LRUCache<>(2500, TimeUnit.MILLISECONDS.convert(120, TimeUnit.SECONDS));
this.obocache = new LRUCache<>(2500, TimeUnit.MILLISECONDS.convert(90, TimeUnit.SECONDS));
}

public static synchronized TokenXExchangeKlient instance() {
Expand Down

0 comments on commit 858438a

Please sign in to comment.