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
()
| 1458 | // This is useful for matching the source field in maintenance notifications |
| 1459 | // (e.g. SMIGRATED). |
| 1460 | func (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. |
no outgoing calls