QUIT · Valkey

QUIT

Closes the connection.

Usage

QUIT

Description

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.

Reply RESP2

Simple string reply: OK.

Reply RESP3

Simple string reply: OK.

Complexity

O(1)

ACL Categories

@connection @fast

History

See also

AUTH, CLIENT, CLIENT CACHING, CLIENT CAPA, CLIENT GETNAME, CLIENT GETREDIR, CLIENT HELP, CLIENT ID, CLIENT INFO, CLIENT KILL, CLIENT LIST, CLIENT NO-EVICT, CLIENT NO-TOUCH, CLIENT PAUSE, CLIENT REPLY, CLIENT SETINFO, CLIENT SETNAME, CLIENT TRACKING, CLIENT TRACKINGINFO, CLIENT UNBLOCK, CLIENT UNPAUSE, ECHO, HELLO, PING, RESET, SELECT.