Skip to content

Support Client CAPA redirect #235

@yangbodong22011

Description

@yangbodong22011

refer: https://valkey.io/commands/client-capa/

redirect - This indicates that the client is capable of handling redirect messages. When accessing a replica node in standalone mode, if a data operation is performed (read or write commands), Valkey will return -REDIRECT primary-ip:port to this connection. Note that the primary-ip can be an IPv6 which itself contains colons, so to properly parse ip and port, a client needs to locate the last colon. Using the READONLY command can enable this connection to execute read commands on the replica node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions