perf[cache]: init lazy cache after 6 seconds

This commit is contained in:
jaysunxiao committed 2025-12-25 16:59:54 +08:00
1 parent 28165e5dd6
commit c380149954
1 file changed
+1 -1
@@ -56,7 +56,7 @@ public class SingleCache<V> {
public static <V> SingleCache<V> lazyBuild(long refreshDuration, Supplier<V> supplier) {
var cache = new SingleCache<V>(refreshDuration, supplier);
cache.lazyRefreshDelay(18, TimeUnit.SECONDS);
cache.lazyRefreshDelay(6, TimeUnit.SECONDS);
return cache;
}