You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once you have connected, the usual Redis commands will work transparently
@@ -308,7 +315,7 @@ Here is a simplified connection lifecycle in a pool:
308
315
7. The connection becomes evictable if the number of connections is greater than `minIdle`.
309
316
8. The connection is ready to be closed.
310
317
311
-
Pass a `ConnectionPoolConfig` object to the `RedisClient`constructor to configure the pool.
318
+
Pass a `ConnectionPoolConfig` object to the `RedisClient`builder to configure the pool.
312
319
(`ConnectionPoolConfig` is a wrapper around `GenericObjectPoolConfig` from [Apache Commons Pool2](https://commons.apache.org/proper/commons-pool/apidocs/org/apache/commons/pool2/impl/GenericObjectPoolConfig.html)).
Copy file name to clipboardExpand all lines: content/develop/clients/jedis/produsage.md
+24-15Lines changed: 24 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,20 +76,19 @@ connection or issuing a command, it can end up hanging indefinitely.
76
76
You can prevent this from happening by setting timeouts for socket
77
77
reads and writes and for opening connections.
78
78
79
-
To set a timeout for a connection, use the `RedisClient` constructor with the `timeout` parameter, or use `JedisClientConfig` with the `socketTimeout` and `connectionTimeout` parameters.
79
+
To set a timeout for a connection, use `JedisClientConfig` with the `socketTimeout` and `connectionTimeout` parameters.
80
80
(The socket timeout is the maximum time allowed for reading or writing data while executing a
81
81
command. The connection timeout is the maximum time allowed for establishing a new connection.)
0 commit comments