DISCARD

DISCARD

DISCARD
Available since
2.0.0
Time complexity
O(N), when N is the number of queued commands
ACL categories
@fast, @transaction

Flushes all previously queued commands in a transaction and restores the connection state to normal.

If WATCH was used, DISCARD unwatches all keys watched by the connection.

Redict logo courtesy of @janWilejan, CC-BY-SA-4.0. Download SVG ⤑

Portions of this website courtesy of Salvatore Sanfilippo, CC-BY-SA-4.0.