mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-14 16:18:13 +00:00
update
This commit is contained in:
1 parent
be2a892aae
commit
28165e5dd6
1 file changed
+1
-1
@@ -56,7 +56,7 @@ public class SingleCache<V> {
|
|||||||
|
|
||||||
public static <V> SingleCache<V> lazyBuild(long refreshDuration, Supplier<V> supplier) {
|
public static <V> SingleCache<V> lazyBuild(long refreshDuration, Supplier<V> supplier) {
|
||||||
var cache = new SingleCache<V>(refreshDuration, supplier);
|
var cache = new SingleCache<V>(refreshDuration, supplier);
|
||||||
cache.lazyRefresh();
|
cache.lazyRefreshDelay(18, TimeUnit.SECONDS);
|
||||||
return cache;
|
return cache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user