Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

ECHO

Last updated
ECHO message
Group
Connection
Complexity
O(1)
Arity
2 (exactly, counting the command name)
Flags
fast
HotKV Cloud
All plans
On-Premise
no license needed

ECHO replies with the message you send. It is useful for testing a connection, or a client library’s handling of binary-safe strings.

The message as a bulk string, in both RESP2 and RESP3. Any number of arguments other than one is refused with ERR wrong number of arguments for 'echo' command.

127.0.0.1:6379> ECHO "hello world"
"hello world"
127.0.0.1:6379> ECHO ""
""

Same as Redis 7 and Valkey 8.

PING