Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

QUIT

Last updated
QUIT
Group
Connection
Complexity
O(1)
Arity
1 (exactly, counting the command name)
Flags
fast, no-auth, loading, stale
HotKV Cloud
All plans
On-Premise
no license needed

QUIT replies OK and closes the connection once every earlier reply has been sent. Nothing sent after QUIT on the same connection runs. It can be sent before the connection is authenticated.

Closing the socket from the client side has the same effect, and most client libraries do that instead.

Simple string OK in RESP2 and RESP3. The server then closes the connection.

127.0.0.1:6379> QUIT
OK

Same as Redis 7 and Valkey 8. Redis 7.2 marks QUIT as deprecated in favour of closing the connection; HotKV keeps it working.

RESET, CLIENT KILL