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: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@
54
54
-[Local Cache](#local-cache)
55
55
-[Redis](#redis)
56
56
-[Redis type](#redis-type)
57
+
-[Connection Timeout](#connection-timeout)
57
58
-[Pipelining](#pipelining)
58
59
-[One Redis Instance](#one-redis-instance)
59
60
-[Two Redis Instances](#two-redis-instances)
@@ -1113,6 +1114,13 @@ The deployment type can be specified with the `REDIS_TYPE` / `REDIS_PERSECOND_TY
1113
1114
1. "sentinel": A comma separated list with the first string as the master name of the sentinel cluster followed by hostname:port pairs. The list size should be >= 2. The first item is the name of the master and the rest are the sentinels.
1114
1115
1. "cluster": A comma separated list of hostname:port pairs with all the nodes in the cluster.
1115
1116
1117
+
## Connection Timeout
1118
+
1119
+
Connection timeout controls the maximum duration for Redis connection establishment, read operations, and write operations.
1120
+
1121
+
1.`REDIS_TIMEOUT`: sets the timeout for Redis connection and I/O operations. Default: `10s`
1122
+
1.`REDIS_PERSECOND_TIMEOUT`: sets the timeout for per-second Redis connection and I/O operations. Default: `10s`
1123
+
1116
1124
## Pipelining
1117
1125
1118
1126
By default, for each request, ratelimit will pick up a connection from pool, write multiple redis commands in a single write then reads their responses in a single read. This reduces network delay.
0 commit comments