ensure GC

This commit is contained in:
Chris Lu 2020-08-03 00:40:23 -07:00
parent 9981748498
commit d6073f6386

View file

@ -15,6 +15,7 @@ public class ChunkCache {
}
this.cache = CacheBuilder.newBuilder()
.maximumSize(maxEntries)
.weakValues()
.expireAfterAccess(1, TimeUnit.HOURS)
.build();
}