Resets the connection.
RESET
This command performs a full reset of the connection’s server-side context, mimicking the effect of disconnecting and reconnecting again.
When the command is called from a regular client connection, it does the following:
MULTI
transaction block, if one
exists.WATCH
ed by the connection.CLIENT TRACKING
, if in use.READWRITE
mode.ASKING
mode, if previously
set.CLIENT REPLY
to ON
.SELECT
s database 0.MONITOR
mode, when applicable.SUBSCRIBE
and
PSUBSCRIBE
), when appropriate.AUTH
to reauthenticate when authentication is enabled.NO-EVICT
mode.NO-TOUCH
mode.Simple string
reply: RESET
.
O(1)
@connection @fast
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, SELECT.