mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-03 09:14:01 +00:00
perf[cache]: init lazy cache after 6 seconds
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user