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
See [API Documentation](API.md#new_Redis) for all available options.
@@ -680,7 +687,6 @@ This feature is useful when using Amazon ElastiCache instances with Auto-failove
680
687
681
688
On ElastiCache insances with Auto-failover enabled, `reconnectOnError` does not execute. Instead of returning a Redis error, AWS closes all connections to the master endpoint until the new primary node is ready. ioredis reconnects via `retryStrategy` instead of `reconnectOnError` after about a minute. On ElastiCache insances with Auto-failover enabled, test failover events with the `Failover primary` option in the AWS console.
682
689
683
-
684
690
## Connection Events
685
691
686
692
The Redis instance will emit some events about the state of the connection to the Redis server.
@@ -923,13 +929,17 @@ Sometimes you may want to send a command to multiple nodes (masters or slaves) o
@@ -1064,7 +1074,7 @@ const cluster = new Redis.Cluster(
1064
1074
1065
1075
## Autopipelining
1066
1076
1067
-
In standard mode, when you issue multiple commands, ioredis sends them to the server one by one. As described in Redis pipeline documentation, this is a suboptimal use of the network link, especially when such link is not very performant.
1077
+
In standard mode, when you issue multiple commands, ioredis sends them to the server one by one. As described in Redis pipeline documentation, this is a suboptimal use of the network link, especially when such link is not very performant.
1068
1078
1069
1079
The TCP and network overhead negatively affects performance. Commands are stuck in the send queue until the previous ones are correctly delivered to the server. This is a problem known as Head-Of-Line blocking (HOL).
1070
1080
@@ -1076,38 +1086,39 @@ This feature can dramatically improve throughput and avoids HOL blocking. In our
1076
1086
1077
1087
While an automatic pipeline is executing, all new commands will be enqueued in a new pipeline which will be executed as soon as the previous finishes.
1078
1088
1079
-
When using Redis Cluster, one pipeline per node is created. Commands are assigned to pipelines according to which node serves the slot.
1089
+
When using Redis Cluster, one pipeline per node is created. Commands are assigned to pipelines according to which node serves the slot.
1080
1090
1081
-
A pipeline will thus contain commands using different slots but that ultimately are assigned to the same node.
1091
+
A pipeline will thus contain commands using different slots but that ultimately are assigned to the same node.
1082
1092
1083
1093
Note that the same slot limitation within a single command still holds, as it is a Redis limitation.
1084
1094
1085
-
1086
1095
### Example of automatic pipeline enqueuing
1087
1096
1088
1097
This sample code uses ioredis with automatic pipeline enabled.
0 commit comments