mirror of
https://gitee.com/dromara/hutool.git
synced 2025-10-07 23:24:43 +08:00
RedisDS
增加getPool
和getSetting
方法(issue#ICVWDI@Gitee)
This commit is contained in:
@@ -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)
|
||||
|
@@ -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}
|
||||
*
|
||||
|
Reference in New Issue
Block a user