ECHO

Since 1.1.0Server

Syntax

ECHO message
  • Flags: fast
  • ACL categories: @connection, @fast
  • Arity: 2

Returns message, unchanged. It touches no key and needs no data, so it is a simple way to check that a connection works and round trips are as fast as expected, like PING, but with a payload of your choosing to match the reply against.

message is one argument: quote it if it contains spaces.

Reply

message, as a bulk string.

Examples

> ECHO hello
"hello"
> ECHO "hello world"
"hello world"
> ECHO a b
(error) ERR wrong number of arguments for 'echo' command