mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 21:59:23 +08:00
ensure GC
This commit is contained in:
@@ -15,6 +15,7 @@ public class ChunkCache {
|
||||
}
|
||||
this.cache = CacheBuilder.newBuilder()
|
||||
.maximumSize(maxEntries)
|
||||
.weakValues()
|
||||
.expireAfterAccess(1, TimeUnit.HOURS)
|
||||
.build();
|
||||
}
|
||||
|
Reference in New Issue
Block a user