ECHO
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.
Return value
Section titled “Return value”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.
Examples
Section titled “Examples”127.0.0.1:6379> ECHO "hello world""hello world"127.0.0.1:6379> ECHO """"Compatibility
Section titled “Compatibility”Same as Redis 7 and Valkey 8.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.