DISCARD

Cancels the queued transaction.

Transactions · Example verified

Syntax covered here

DISCARD

A queued SET is not applied, as confirmed by a subsequent GET of the still-missing key.

Tested example & replies

Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.

# connection: default
> MULTI
"OK"
# connection: default
> SET sample value
"QUEUED"
# connection: default
> DISCARD
"OK"
# connection: default
> GET sample
null