#rediscluster/client.py
classRedisCluster(Redis):
...def __init__(self, host=None, port=None, startup_nodes=None, max_connections=None, max_connections_per_node=False, init_slot_cache=True,
readonly_mode=False, reinitialize_steps=None, skip_full_coverage_check=False, nodemanager_follow_cluster=False,
connection_class=None, read_from_replicas=False, cluster_down_retry_attempts=3, host_port_remap=None, **kwargs):
#Tweaks to Redis client arguments when running in cluster mode
log.info("Created new instance of RedisCluster client instance")
log.debug("startup_nodes :" + json.dumps(startup_nodes, indent=2))if "db" inkwargs:raise RedisClusterException("Argument 'db' is not possible to use in cluster mode")#Needs to be removed to avoid exception in redis Connection init
if kwargs.pop(&