MCPcopy
hub / github.com/redis/go-redis / NodeAddress

Method NodeAddress

redis.go:1460–1462  ·  view source on GitHub ↗

NodeAddress returns the address of the Redis node as reported by the server. For cluster clients, this is the endpoint from CLUSTER SLOTS before any transformation (e.g., loopback replacement). For standalone clients, this defaults to Addr. This is useful for matching the source field in maintenanc

()

Source from the content-addressed store, hash-verified

1458// This is useful for matching the source field in maintenance notifications
1459// (e.g. SMIGRATED).
1460func (c *Client) NodeAddress() string {
1461 return c.opt.NodeAddress
1462}
1463
1464// GetMaintNotificationsManager returns the maintnotifications manager instance for monitoring and control.
1465// Returns nil if maintnotifications are not enabled.

Calls

no outgoing calls