diff --git a/service-yarn-query/src/main/java/com/lanyuanxiaoyao/service/yarn/service/impl/JobServiceImpl.java b/service-yarn-query/src/main/java/com/lanyuanxiaoyao/service/yarn/service/impl/JobServiceImpl.java index 1c4fb6c..67ad440 100644 --- a/service-yarn-query/src/main/java/com/lanyuanxiaoyao/service/yarn/service/impl/JobServiceImpl.java +++ b/service-yarn-query/src/main/java/com/lanyuanxiaoyao/service/yarn/service/impl/JobServiceImpl.java @@ -40,7 +40,7 @@ public class JobServiceImpl implements JobService { this.mapper = builder.build(); } - @Cacheable(value = "job-list", sync = true, key = "#cluster") + @Cacheable(value = "job-list", sync = true) @Retryable(Throwable.class) @Override public ImmutableList list(String cluster) throws JsonProcessingException { @@ -50,14 +50,14 @@ public class JobServiceImpl implements JobService { } } - @Cacheable(value = "job-list", sync = true, key = "#{methodName+cluster+name}") + @Cacheable(value = "job-list", sync = true, key = "#methodName+#cluster+#name") @Retryable(Throwable.class) @Override public ImmutableList listEquals(String cluster, String name) throws JsonProcessingException { return list(cluster).select(app -> StrUtil.equals(app.getName(), name)); } - @Cacheable(value = "job-list", sync = true, key = "#{methodName+cluster+name}") + @Cacheable(value = "job-list", sync = true, key = "#methodName+#cluster+#name") @Retryable(Throwable.class) @Override public ImmutableList listLike(String cluster, String name) throws JsonProcessingException {