mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-30 23:47:37 +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.keepTime = keepTime;
|
||||||
this.cache = CacheBuilder.newBuilder()
|
this.cache = CacheBuilder.newBuilder()
|
||||||
.expireAfterWrite(keepTime, TimeUnit.MILLISECONDS)
|
.expireAfterWrite(keepTime, TimeUnit.MILLISECONDS)
|
||||||
.weakValues()
|
.softValues()
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user