What's new in Valkey 9.0? Discover new features and improvements. Read the announcement.

QUIT

Closes the connection.

Usage
QUIT
Complexity
O(1)
Since
1.0.0
ACL Categories
@connection, @fast
Command flags
ALLOW_BUSY, NOSCRIPT, LOADING, STALE, FAST, NO_AUTH

Ask the server to close the connection. The connection is closed as soon as all pending replies have been written to the client.

Note: Clients should not use this command. Instead, clients should simply close the connection when they're not used anymore. Terminating a connection on the client side is preferable, as it eliminates TIME_WAIT lingering sockets on the server side.

Alternative

Just closing the connection.

Replies

RESP2

RESP3