@@ -43,6 +43,8 @@ public RedisAI(String host, int port) {
43
43
*
44
44
* @param host the redis host
45
45
* @param port the redis pot
46
+ * @param timeout
47
+ * @param poolSize
46
48
*/
47
49
public RedisAI (String host , int port , int timeout , int poolSize ) {
48
50
this (host , port , timeout , poolSize , null );
@@ -53,6 +55,8 @@ public RedisAI(String host, int port, int timeout, int poolSize) {
53
55
*
54
56
* @param host the redis host
55
57
* @param port the redis pot
58
+ * @param timeout
59
+ * @param poolSize
56
60
* @param password the password for authentication in a password protected Redis server
57
61
*/
58
62
public RedisAI (String host , int port , int timeout , int poolSize , String password ) {
@@ -66,7 +70,32 @@ public RedisAI(String host, int port, int timeout, int poolSize, String password
66
70
* @param clientConfig
67
71
*/
68
72
public RedisAI (HostAndPort hostAndPort , JedisClientConfig clientConfig ) {
69
- this (new JedisPool (new GenericObjectPoolConfig <>(), hostAndPort , clientConfig ));
73
+ this (new GenericObjectPoolConfig <>(), hostAndPort , clientConfig );
74
+ }
75
+
76
+ /**
77
+ * Create a new RedisAI client
78
+ *
79
+ * @param hostAndPort
80
+ * @param clientConfig
81
+ * @param poolSize
82
+ */
83
+ public RedisAI (HostAndPort hostAndPort , JedisClientConfig clientConfig , int poolSize ) {
84
+ this (initPoolConfig (poolSize ), hostAndPort , clientConfig );
85
+ }
86
+
87
+ /**
88
+ * Create a new RedisAI client
89
+ *
90
+ * @param poolConfig
91
+ * @param hostAndPort
92
+ * @param clientConfig
93
+ */
94
+ public RedisAI (
95
+ GenericObjectPoolConfig <Jedis > poolConfig ,
96
+ HostAndPort hostAndPort ,
97
+ JedisClientConfig clientConfig ) {
98
+ this (new JedisPool (poolConfig , hostAndPort , clientConfig ));
70
99
}
71
100
72
101
/**
0 commit comments