MCPcopy
hub / github.com/redis/redis-py / get_default_node

Method get_default_node

redis/cluster.py:1063–1067  ·  view source on GitHub ↗

Get the cluster's default node

(self)

Source from the content-addressed store, hash-verified

1061 return slot_cache[node_idx]
1062
1063 def get_default_node(self):
1064 """
1065 Get the cluster's default node
1066 """
1067 return self.nodes_manager.default_node
1068
1069 def get_nodes_from_slot(self, command: str, *args):
1070 """

Calls

no outgoing calls