diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ab573cbd..bd6fbeb33 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ # 🚀Changelog ------------------------------------------------------------------------------------------------------------- -# 5.8.41(2025-09-03) +# 5.8.41(2025-09-04) ### 🐣新特性 * 【core 】 增加`WeakKeyValueConcurrentMap`及其关联类,同时废弃`WeakConcurrentMap`并替换(issue#4039@Github) @@ -12,6 +12,7 @@ * 【db 】 `Condition`增加构造方法支持BETWEEN(issue#4041@Github) * 【core 】 `IoUtil.writeObjects`判空避免空指针(issue#4049@Github) * 【extra 】 `OsInfo`增加`isWindows11`方法(pr#4054@Github) +* 【extra 】 `RedisDS`增加`getPool`和`getSetting`方法(issue#ICVWDI@Gitee) ### 🐞Bug修复 * 【core 】 修复`ReflectUtil`中因class和Method关联导致的缓存无法回收问题(issue#4039@Github) diff --git a/hutool-db/src/main/java/cn/hutool/db/nosql/redis/RedisDS.java b/hutool-db/src/main/java/cn/hutool/db/nosql/redis/RedisDS.java index 2fe9c4b38..319ebffc3 100755 --- a/hutool-db/src/main/java/cn/hutool/db/nosql/redis/RedisDS.java +++ b/hutool-db/src/main/java/cn/hutool/db/nosql/redis/RedisDS.java @@ -137,6 +137,26 @@ public class RedisDS implements Closeable, Serializable { return this; } + /** + * 获取Jedis连接池 + * + * @return Jedis连接池 + * @since 5.8.41 + */ + public JedisPool getPool() { + return pool; + } + + /** + * 获取配置 + * + * @return 配置 + * @since 5.8.41 + */ + public Setting getSetting() { + return setting; + } + /** * 从资源池中获取{@link Jedis} *