@@ -1006,6 +1006,7 @@ a slots cache which maps each of the 16384 slots to the node/s handling them,
10061006a nodes cache that contains ClusterNode objects (name, host, port, redis connection)
10071007for all of the cluster's nodes, and a commands cache contains all the server
10081008supported commands that were retrieved using the Redis 'COMMAND' output.
1009+ See * RedisCluster specific options* below for more.
10091010
10101011RedisCluster instance can be directly used to execute Redis commands. When a
10111012command is being executed through the cluster instance, the target node(s) will
@@ -1245,6 +1246,55 @@ The following commands are not supported:
12451246
12461247Using scripting within pipelines in cluster mode is ** not supported** .
12471248
1249+
1250+ ** RedisCluster specific options**
1251+
1252+ require_full_coverage: (default=False)
1253+
1254+ When set to False (default value): the client will not require a
1255+ full coverage of the slots. However, if not all slots are covered,
1256+ and at least one node has 'cluster-require-full-coverage' set to
1257+ 'yes,' the server will throw a ClusterDownError for some key-based
1258+ commands. See -
1259+ https://redis.io/topics/cluster-tutorial#redis-cluster-configuration-parameters
1260+ When set to True: all slots must be covered to construct the
1261+ cluster client. If not all slots are covered, RedisClusterException
1262+ will be thrown.
1263+
1264+ read_from_replicas: (default=False)
1265+
1266+ Enable read from replicas in READONLY mode. You can read possibly
1267+ stale data.
1268+ When set to true, read commands will be assigned between the
1269+ primary and its replications in a Round-Robin manner.
1270+
1271+ dynamic_startup_nodes: (default=False)
1272+
1273+ Set the RedisCluster's startup nodes to all of the discovered nodes.
1274+ If true, the cluster's discovered nodes will be used to determine the
1275+ cluster nodes-slots mapping in the next topology refresh.
1276+ It will remove the initial passed startup nodes if their endpoints aren't
1277+ listed in the CLUSTER SLOTS output.
1278+ If you use dynamic DNS endpoints for startup nodes but CLUSTER SLOTS lists
1279+ specific IP addresses, keep it at false.
1280+
1281+ cluster_error_retry_attempts: (default=3)
1282+
1283+ Retry command execution attempts when encountering ClusterDownError
1284+ or ConnectionError
1285+
1286+ reinitialize_steps: (default=10)
1287+
1288+ Specifies the number of MOVED errors that need to occur before
1289+ reinitializing the whole cluster topology. If a MOVED error occurs
1290+ and the cluster does not need to be reinitialized on this current
1291+ error handling, only the MOVED slot will be patched with the
1292+ redirected node.
1293+ To reinitialize the cluster on every MOVED error, set
1294+ reinitialize_steps to 1.
1295+ To avoid reinitializing the cluster on moved errors, set
1296+ reinitialize_steps to 0.
1297+
12481298### Author
12491299
12501300redis-py is developed and maintained by [ Redis Inc] ( https://redis.com ) . It can be found [ here] (
0 commit comments