mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-29 15:07:36 +02:00
Use soft references for cached packet instead of weak
This commit is contained in:
parent
d3bea57ddc
commit
419ebe7553
@ -28,7 +28,7 @@ public class TemporaryCache<T> {
|
||||
this.keepTime = keepTime;
|
||||
this.cache = CacheBuilder.newBuilder()
|
||||
.expireAfterWrite(keepTime, TimeUnit.MILLISECONDS)
|
||||
.weakValues()
|
||||
.softValues()
|
||||
.build();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user