Use soft references for cached packet instead of weak

This commit is contained in:
themode 2021-02-26 12:48:53 +01:00
parent d3bea57ddc
commit 419ebe7553

View File

@ -28,7 +28,7 @@ public class TemporaryCache<T> {
this.keepTime = keepTime;
this.cache = CacheBuilder.newBuilder()
.expireAfterWrite(keepTime, TimeUnit.MILLISECONDS)
.weakValues()
.softValues()
.build();
}