English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Redis Discard command is used to cancel transactions, and to give up executing all commands within the transaction block.
The basic syntax of the redis Discard command is as follows:
redis 127.0.0.1:6379> DISCARD
>= 2.0.0
Always returns OK .
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