Open daizhichao opened 2 days ago
The connection is lazily created, i.e. when you send command to Redis server, redis++ creates a connection to it.
If you want to check if the given <host, port> pair works, you can manually send a ping command.
Regards
Is it necessary to use the ping() function to determine whether the connection is successful? As shown in the figure, an exception indicating a connection failure will be thrown only after using the ping() function.