mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-14 04:16:53 +00:00
perf[cache]: async load single cache
This commit is contained in:
1 parent
cd1ae54fce
commit
34ac818752
1 file changed
+1
-1
@@ -60,7 +60,7 @@ public class SingleCache<V> {
|
||||
try {
|
||||
if (now > refreshTime) {
|
||||
refreshTime = now + refreshDuration;
|
||||
cache = supplier.get();
|
||||
EventBus.asyncExecute(() -> cache = supplier.get());
|
||||
}
|
||||
} finally {
|
||||
lock.unlock();
|
||||
|
||||
Reference in new issue
Block a user