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

Method get_primaries

redis/cluster.py:1022–1023  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1020 return self.nodes_manager.get_node(host, port, node_name)
1021
1022 def get_primaries(self):
1023 return self.nodes_manager.get_nodes_by_server_type(PRIMARY)
1024
1025 def get_replicas(self):
1026 return self.nodes_manager.get_nodes_by_server_type(REPLICA)

Callers 15

restoreFunction · 0.45
slowlogFunction · 0.45
moved_redirection_helperFunction · 0.45
test_timeMethod · 0.45
test_lastsaveMethod · 0.45
test_cluster_echoMethod · 0.45

Calls 1

Tested by 15

restoreFunction · 0.36
slowlogFunction · 0.36
moved_redirection_helperFunction · 0.36
test_timeMethod · 0.36
test_lastsaveMethod · 0.36
test_cluster_echoMethod · 0.36
test_config_resetstatMethod · 0.36