diff options
author | Binbin <binloveplay1314@qq.com> | 2022-04-28 19:17:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 14:17:25 +0300 |
commit | 40fdb152641fcdf3be010cebe656331aa5709c2d (patch) | |
tree | cbbf372db7fbd0ede356e5e678046ff09ef0eaef | |
parent | 1475e5ced1469379a50502e47ec798458bd00f59 (diff) | |
download | redis-py-40fdb152641fcdf3be010cebe656331aa5709c2d.tar.gz |
Minor cleanups in commands/cluster.py (#2094)
-rw-r--r-- | redis/commands/cluster.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/redis/commands/cluster.py b/redis/commands/cluster.py index e4628db..aaddb6a 100644 --- a/redis/commands/cluster.py +++ b/redis/commands/cluster.py @@ -189,7 +189,7 @@ class ClusterManagementCommands(ManagementCommands): For more information see https://redis.io/commands/replicaof """ - raise RedisClusterException("REPLICAOF is not supported in cluster" " mode") + raise RedisClusterException("REPLICAOF is not supported in cluster mode") def swapdb(self, *args, **kwargs): """ @@ -197,7 +197,7 @@ class ClusterManagementCommands(ManagementCommands): For more information see https://redis.io/commands/swapdb """ - raise RedisClusterException("SWAPDB is not supported in cluster" " mode") + raise RedisClusterException("SWAPDB is not supported in cluster mode") class ClusterDataAccessCommands(DataAccessCommands): @@ -310,7 +310,6 @@ class RedisClusterCommands( target specific nodes. By default, if target_nodes is not specified, the command will be executed on the default cluster node. - :param :target_nodes: type can be one of the followings: - nodes flag: ALL_NODES, PRIMARIES, REPLICAS, RANDOM - 'ClusterNode' @@ -323,7 +322,7 @@ class RedisClusterCommands( def cluster_myid(self, target_node): """ - Returns the node’s id. + Returns the node's id. :target_node: 'ClusterNode' The node to execute the command on |