{
    "GETREDIR": {
        "summary": "Returns the client ID to which the connection's tracking notifications are redirected.",
        "complexity": "O(1)",
        "group": "connection",
        "since": "6.0.0",
        "arity": 2,
        "container": "CLIENT",
        "function": "clientGetredirCommand",
        "command_flags": [
            "NOSCRIPT",
            "LOADING",
            "STALE",
            "SENTINEL"
        ],
        "acl_categories": [
            "CONNECTION"
        ],
        "reply_schema": {
            "oneOf": [
                {
                    "const": 0,
                    "description": "Not redirecting notifications to any client."
                },
                {
                    "const": -1,
                    "description": "Client tracking is not enabled."
                },
                {
                    "type": "integer",
                    "description": "ID of the client we are redirecting the notifications to.",
                    "minimum": 1
                }
            ]
        }
    }
}
