QUIT(3valkey)
π 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 π
auth(3valkey)client(3valkey)client-caching(3valkey)client-capa(3valkey)client-getname(3valkey)client-getredir(3valkey)client-help(3valkey)client-id(3valkey)client-import-source(3valkey)client-info(3valkey)client-kill(3valkey)client-list(3valkey)client-no-evict(3valkey)client-no-touch(3valkey)client-pause(3valkey)client-reply(3valkey)client-setinfo(3valkey)client-setname(3valkey)client-tracking(3valkey)client-trackinginfo(3valkey)client-unblock(3valkey)client-unpause(3valkey)echo(3valkey)hello(3valkey)ping(3valkey)reset(3valkey)select(3valkey)
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
- fedora 44: valkey-doc 9.0.3-2.fc44 Β· CC-BY-SA-4.0
- fedora 44: valkey-doc 9.0.6-1.fc44 Β· CC-BY-SA-4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms