Skip to content

PING

PING verifies that a connection is alive. It is the only command allowed before authentication, so load balancers and health checks can still reach the server when --require-pass is set (see AUTH).

PING [message]

With no arguments the server replies +PONG; with a message argument the message is echoed back as a bulk string.

Reply: +PONG, or the echoed message.

> PING
+PONG
> PING hello
$5
hello

The binary protocol carries a dedicated MsgPing / MsgPong message pair used by the transport and health probes. MsgPong is sent in reply to MsgPing:

[client] MsgPing → [server] MsgPong

The high-level client package exposes no Ping wrapper — Get / Set / Delete / Auth are the typed calls it offers. The MsgPing frame is handled at the network layer (internal/network), so any raw binary-protocol client can probe the server with it.