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();
if (CollectionUtil.isEmpty(mapFieldSet)) {
return map;
}
for (String field : mapFieldSet) {
String value = mapCache.get(field);
map.put(field, value);
} else {
Map<String, String> readAllMap = mapCache.readAllMap();
map.putAll(readAllMap);
}
return map;
}