RESET(3valkey)

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

✨ RESET ✨

okay bestie, this is the valkey manual page for the reset command, and it is literally the "ctrl+alt+del but for your connection" icon πŸ’…


🌸 NAME 🌸

reset β€” resets the connection. that's it. that's the whole vibe. it hits the big red button on your connection's server-side situation 🫢


πŸŽ€ SYNOPSIS πŸŽ€

RESET

no args. no flags. just pure, unfiltered, take-no-arguments RESET. she does not want your input πŸ’€


πŸ’– DESCRIPTION πŸ’–

so here's the tea: this command does a full reset of the connection's server-side context. like, it's mimicking the whole "hang up and call back" move β€” disconnecting and reconnecting again β€” except you never actually leave. the glow-up happens in place ✨

when you call it from a regular client connection, it does all of this:

  • Discards the current MULTI transaction block, if one exists. (sorry queen, the transaction is cancelled 🚫)
  • Unwatches all keys WATCHed by the connection. πŸ‘€βœ–οΈ
  • Disables CLIENT TRACKING, if in use.
  • Sets the connection to READWRITE mode.
  • Cancels the connection's ASKING mode, if previously set.
  • Sets CLIENT REPLY to ON.
  • Sets the protocol version to RESP2.
  • SELECTs database 0. back to basics, back to zero, main character energy 🏠
  • Exits MONITOR mode, when applicable.
  • Aborts Pub/Sub's subscription state (SUBSCRIBE and PSUBSCRIBE), when appropriate. no more listening, we're done streaming πŸ“»
  • Deauthenticates the connection, requiring a call AUTH to reauthenticate when authentication is enabled. πŸ” yeah you're logged out, bestie β€” you gotta say who you are again
  • Turns off NO-EVICT mode.
  • Turns off NO-TOUCH mode.
lowkey the most thorough reset ever. it's giving factory settings. it's giving "new phone who dis". fr fr 🌈

πŸ“¬ REPLY πŸ“¬

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

she replies with her own name. iconic. no notes. πŸ’…


⚑ COMPLEXITY ⚑

O(1)

constant time, baby β€” instant, snappy, no waiting around ⭐


πŸ‘‘ ACL CATEGORIES πŸ‘‘

@connection @fast


πŸ¦‹ HISTORY πŸ¦‹

  • Available since: 6.2.0

πŸ”₯ 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), quit(3valkey), select(3valkey)


and that's the whole page, bestie!! this was version 9.0.0, dated 2025-10-21, and it's a RESET(3valkey) situation β€” go forth and reset slayfully πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from