Skip to content

Commit

Permalink
Add maximum size for converted objects cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Brikster committed Jun 30, 2024
1 parent 1684acd commit 01d0a5e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public final class NativeAudienceAdapter implements Audience {
CacheBuilder.newBuilder()
.weakKeys()
.expireAfterAccess(Duration.ofMinutes(5))
.maximumSize(1024)
.build();

private static final String NET_KYORI_ADVENTURE = "net.".concat("kyori.adventure.");
Expand Down

0 comments on commit 01d0a5e

Please sign in to comment.