DISCARD

Syntax
DISCARD
Available since:
Redis Open Source 2.0.0
Time complexity:
O(N), when N is the number of queued commands
ACL categories:
@fast, @transaction,
Compatibility:
Redis Software and Redis Cloud compatibility

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.

Redis Software and Redis Cloud compatibility

Redis
Enterprise
Redis
Cloud
Notes
✅ Standard
✅ Active-Active
✅ Standard
✅ Active-Active

Return information

RATE THIS PAGE
Back to top ↑