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
Copy file name to clipboardExpand all lines: docs/sources/next/javascript-api/k6-experimental/redis/redis-options.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,23 +6,23 @@ weight: 20
6
6
7
7
# Redis options
8
8
9
-
You can configure the [Redis Client](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/redis/client)either by using a Redis connection URL as demonstrated in the [client documentation](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/redis/client#usage) or using an [Options](#options) object to access more advanced configuration.
9
+
You can configure the [Redis Client](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/redis/client) by using a Redis connection URL as demonstrated in the [client documentation](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-experimental/redis/client#usage), or by using an [Options](#options) object to access more advanced configuration.
10
10
11
11
## Options
12
12
13
-
Configuration for the overall Redis client, including authentication and connection settings.
13
+
The configuration for the overall Redis client, including authentication and connection settings.
| host | String | IP address or hostname of the Redis server. |
34
34
| port | Number (optional) | Port number of the Redis server. |
35
-
| tls |[TLSOptions](#tls-configuration-options-tlsoptions) (optional) |Configuration for TLS/SSL. |
36
-
| dialTimeout | Number (optional, default is _5(seconds)_) | Timeout for establishing a connection, expressed in seconds. |
37
-
| readTimeout | Number (optional, default is _3(seconds)_) | Timeout for socket reads, expressed in seconds. A value of `-1` disables the timeout. |
38
-
| writeTimeout | Number (optional, default is `readTimeout`) | Timeout for socket writes, expressed in seconds. A value of `-1` disables the timeout. |
39
-
| poolSize | Number (optional, default is _10 (per CPU)_) | Number of socket connections in the pool per CPU. |
35
+
| tls |[TLSOptions](#tls-configuration-options) (optional) |The configuration for TLS/SSL. |
36
+
| dialTimeout | Number (optional, default is _5_(seconds)) | Timeout for establishing a connection, in seconds. |
37
+
| readTimeout | Number (optional, default is _3_(seconds)) | Timeout for socket reads, in seconds. A value of `-1` disables the timeout. |
38
+
| writeTimeout | Number (optional, default is `readTimeout`) | Timeout for socket writes, in seconds. A value of `-1` disables the timeout. |
39
+
| poolSize | Number (optional, default is _10_ (per CPU)) | Number of socket connections in the pool per CPU. |
40
40
| minIdleConns | Number (optional) | Minimum number of idle connections in the pool. |
41
41
| maxConnAge | Number (optional, default is _0_ (no maximum idle time)) | Maximum idle time before closing a connection. |
42
42
| poolTimeout | Number (optional, `readTimeout + 1`) | Timeout for acquiring a connection from the pool. |
43
43
| idleTimeout | Number (optional, `readTimeout + 1`) | Timeout for idle connections in the pool. |
44
-
| idleCheckFrequency | Number (optional, default is _1 (minute)_) | Frequency of idle connection checks, in minutes. A value of `-1` disables the checks. |
44
+
| idleCheckFrequency | Number (optional, default is _1_ (minute)) | Frequency of idle connection checks, in minutes. A value of `-1` disables the checks. |
45
45
46
46
#### TLS Configuration Options
47
47
@@ -63,4 +63,4 @@ Options for behavior in a Redis Cluster setup.
| routeRandomly | Boolean (optional) | Random routing for read commands. |
66
-
| nodes | String[] or [SocketOptions](#socket-connection-options-socketoptions)[]| List of cluster nodes as URLs or [SocketOptions](#socket-connection-options-socketoptions). |
66
+
| nodes | String[] or [SocketOptions](#socket-connection-options)[]| List of cluster nodes as URLs or [SocketOptions](#socket-connection-options). |
0 commit comments