fix 修复 新语法 .toList() 返回不可变 List 类型导致序列化问题

This commit is contained in:
疯狂的狮子Li
2023-01-30 23:02:33 +08:00
parent e94ed91f0b
commit f0eae7cdb5
4 changed files with 15 additions and 11 deletions

View File

@ -438,7 +438,7 @@ public class RedisUtils {
*/
public static Collection<String> keys(final String pattern) {
Stream<String> stream = CLIENT.getKeys().getKeysStreamByPattern(pattern);
return stream.toList();
return stream.collect(Collectors.toList());
}
/**