Send a ping to the server and get a response if the server is alive.
assert redis.ping() == "PONG"
No arguments
PONG
Was this page helpful?