Redis Discard command
The Redis Discard command is used to cancel a transaction and discard all commands in the transaction block.
Syntax
The basic syntax of the redis Discard command is as follows:
redis 127.0.0.1:6379> DISCARD
Available Version
= 2.0.0
Return Value
Always returns OK.
Example
redis 127.0.0.1:6379> MULTI
OK
redis 127.0.0.1:6379> PING
QUEUED
redis 127.0.0.1:6379> SET greeting "hello"
QUEUED
redis 127.0.0.1:6379> DISCARD
OK