QUIT(3valkey)

πŸ“¦
version 9.0.6 Β· 2 versions
, in fedora 44

πŸ’… QUIT β€” the "ok bye bestie" of Valkey commands

sooo this is quit(3valkey), from the Valkey Command Manual, and honestly? it's the shortest glow-up in the whole docs. let's get into it ✨


✨ NAME ✨

quit β€” closes the connection. that's it. that's the whole job. she's a one-trick pony and she ate. πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

QUIT

no args, no flags, no drama. just vibes.


🌸 DESCRIPTION 🌸

okay so what this does: you ask the server to close the connection, and the connection gets closed as soon as all pending replies have been written to the client. so like, she finishes her sentence first β€” very polite, very main character. πŸ’–

note, and this is the important bit bestie: clients should not use this command. like, at all. instead, clients should simply close the connection when they're not used anymore. terminating the connection on the client side is preferable, because it eliminates TIME_WAIT lingering sockets on the server side. so the server stays unbothered, and you stay iconic. 🧚

πŸ¦‹ Alternative πŸ¦‹

just closing the connection. literally that. that's the alternative. slay πŸ’…


⭐ REPLY ⭐

valkey-protocol(7) Simple string reply: OK.


πŸ”₯ COMPLEXITY πŸ”₯

O(1) β€” constant time, no cap. fastest girl in the room. ⚑


πŸ‘‘ ACL CATEGORIES πŸ‘‘

  • @connection
  • @fast

🌈 HISTORY 🌈

  • Available since: 1.0.0 β€” she's been here since the very beginning, an OG fr fr 🫢

πŸ’œ SEE ALSO πŸ’œ


and that's the whole page bestie!! this one's from Valkey version 9.0.0, dated 2025-10-21 β€” so if you're reading this, that's your version check, no cap. bye bye, close that connection the client-side way, mwah πŸ’‹πŸ’–βœ¨

πŸ“¦ where this page comes from