Skip to content

Commit

Permalink
Change resolution time to every 10 seconds post write
Browse files Browse the repository at this point in the history
  • Loading branch information
NickImpact committed Apr 27, 2024
1 parent 01c63d8 commit c885e7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class AccountPlaceholderParser implements PlaceholderParser {
private record AccountRequest(UUID uuid, Currency currency) {}

private final AsyncLoadingCache<AccountRequest, Account> cache = Caffeine.newBuilder()
.expireAfterWrite(1, TimeUnit.MINUTES)
.expireAfterWrite(10, TimeUnit.SECONDS)
.buildAsync(request -> service.get().account(request.currency, request.uuid).join());

@Override
Expand Down

0 comments on commit c885e7d

Please sign in to comment.