The channel to publish to.
OptionalclientConnection name to register (HELLO ... SETNAME or CLIENT SETNAME).
OptionaldbDatabase index to SELECT after authenticating.
Remote Redis host.
The payload (a string is UTF-8 encoded).
OptionalpasswordPassword for AUTH, or for the HELLO ... AUTH clause when protocol: 3.
OptionalportRemote port; defaults to 6379.
OptionalprotocolRESP protocol version: 2 (default) or 3.
RESP2 works against every Redis version. RESP3 requires Redis 6 or newer and is not negotiated down - an older server fails the connect rather than silently falling back, because the two versions return different reply shapes for the same command.
OptionaltimeoutRead deadline in milliseconds for the connect handshake.
OptionaltlsTransport security:
'off' (default): plaintext.'implicit': TLS from the first byte, for a server with tls-port configured.Redis has no in-band upgrade, so there is no 'starttls' mode.
OptionalusernameACL username (Redis 6+); pair with password. Omit for a requirepass-only server.
Options for the publish one-shot.