mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add method
This commit is contained in:
@@ -9,6 +9,7 @@ import redis.clients.jedis.JedisPoolConfig;
|
||||
import redis.clients.jedis.Protocol;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Jedis数据源
|
||||
@@ -16,7 +17,7 @@ import java.io.Closeable;
|
||||
* @author looly
|
||||
* @since 3.2.3
|
||||
*/
|
||||
public class RedisDS implements Closeable, Serializable{
|
||||
public class RedisDS implements Closeable, Serializable {
|
||||
private static final long serialVersionUID = -5605411972456177456L;
|
||||
/** 默认配置文件 */
|
||||
public final static String REDIS_CONFIG_PATH = "config/redis.setting";
|
||||
@@ -30,7 +31,7 @@ public class RedisDS implements Closeable, Serializable{
|
||||
/**
|
||||
* 创建RedisDS,使用默认配置文件,默认分组
|
||||
*
|
||||
* @return {@link RedisDS}
|
||||
* @return RedisDS
|
||||
*/
|
||||
public static RedisDS create() {
|
||||
return new RedisDS();
|
||||
@@ -40,7 +41,7 @@ public class RedisDS implements Closeable, Serializable{
|
||||
* 创建RedisDS,使用默认配置文件
|
||||
*
|
||||
* @param group 配置文件中配置分组
|
||||
* @return {@link RedisDS}
|
||||
* @return RedisDS
|
||||
*/
|
||||
public static RedisDS create(String group) {
|
||||
return new RedisDS(group);
|
||||
@@ -51,7 +52,7 @@ public class RedisDS implements Closeable, Serializable{
|
||||
*
|
||||
* @param setting 配置文件
|
||||
* @param group 配置文件中配置分组
|
||||
* @return {@link RedisDS}
|
||||
* @return RedisDS
|
||||
*/
|
||||
public static RedisDS create(Setting setting, String group) {
|
||||
return new RedisDS(setting, group);
|
||||
|
Reference in New Issue
Block a user