Refactor:ID20BW Redisson优化获取数据获取

This commit is contained in:
jay li
2025-10-15 14:22:31 +08:00
parent cd369b3c39
commit fefdea4cc2

View File

@@ -41,10 +41,9 @@ public class RClient {
Set<String> mapFieldSet = mapCache.keySet(); Set<String> mapFieldSet = mapCache.keySet();
if (CollectionUtil.isEmpty(mapFieldSet)) { if (CollectionUtil.isEmpty(mapFieldSet)) {
return map; return map;
} } else {
for (String field : mapFieldSet) { Map<String, String> readAllMap = mapCache.readAllMap();
String value = mapCache.get(field); map.putAll(readAllMap);
map.put(field, value);
} }
return map; return map;
} }