Skip to content

PING

Returns PONG or echoes back the given message.

PING [message]
ParameterTypeRequiredDescription
messagestringNoOptional message to echo back
  • Without message: Simple string PONG.
  • With message: Bulk string containing the provided message.

If a non-empty message is provided, returns it as a bulk string. Otherwise, returns the simple string PONG.

This command does not require the cluster to be initialized.

No command-specific errors.

Without message:

127.0.0.1:5484> PING
PONG

With message:

127.0.0.1:5484> PING "hello world"
"hello world"