PING
Tests the connection to Echo DB and returns a response.
Syntax
PING [message]Description
The PING command is used to test if the connection to Echo DB is working. If called without arguments, it returns PONG. If called with a message, it echoes back the message.
Arguments
message(optional): A message to echo back. If provided, Echo DB will return this message instead ofPONG.
Return Value
Returns a Simple String:
PONGif no message is provided- The provided message if a message is given
Examples
Basic PING
PINGResponse:
PONGPING with Message
PING "Hello Echo DB"Response:
Hello Echo DBUse Cases
- Connection Testing: Verify that the connection to Echo DB is working
- Health Checks: Use in monitoring scripts to check if Echo DB is responsive
- Debugging: Test network connectivity and server responsiveness
Related Commands
- ECHO - Echo a string