Browse Source

ensure GC

pull/1507/head
Chris Lu 4 years ago
parent
commit
d6073f6386
  1. 1
      other/java/client/src/main/java/seaweedfs/client/ChunkCache.java

1
other/java/client/src/main/java/seaweedfs/client/ChunkCache.java

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

Loading…
Cancel
Save