mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-07-01 02:34:27 +08:00
优化代码
This commit is contained in:
@@ -190,7 +190,7 @@ public class CacheMonitorController {
|
||||
|
||||
protected long getTimes(CacheManager cacheManager, TimesGetter getter) {
|
||||
long times = cacheManager.getCacheNames().parallelStream()
|
||||
.map(name -> cacheManager.getCache(name))
|
||||
.map(cacheManager::getCache)
|
||||
.filter(cache -> cache instanceof MonitorCache)
|
||||
.map(cache -> (MonitorCache) cache)
|
||||
.mapToLong(getter::get)
|
||||
|
||||
Reference in New Issue
Block a user