Redis QUIT command asks the server to close the connection. The connection is closed as soon as all pending replies have been written to the client.
Return Value
String reply OK.
Syntax
Following is the basic syntax of Redis QUIT command.
redis 127.0.0.1:6379> QUIT
Example
redis 127.0.0.1:6379> QUIT OK