fix(yarn-query): 修复 cache key 语法错误
This commit is contained in:
@@ -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<YarnApplication> 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<YarnApplication> 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<YarnApplication> listLike(String cluster, String name) throws JsonProcessingException {
|
||||
|
||||
Reference in New Issue
Block a user