Browse Source

volume id cache: reduce cache time

logrus
Chris Lu 4 years ago
parent
commit
fe01059675
  1. 2
      other/java/client/src/main/java/seaweedfs/client/VolumeIdCache.java

2
other/java/client/src/main/java/seaweedfs/client/VolumeIdCache.java

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

Loading…
Cancel
Save