Redis Unwatch Command

Redis Transactions

The Redis Unwatch command is used to cancel the monitoring of all keys by the WATCH command.

Syntax

The basic syntax of the redis Unwatch command is as follows:

redis 127.0.0.1:6379> UNWATCH 

Available Versions

>= 2.2.0

Return Value

Always returns OK.

Examples

redis 127.0.0.1:6379> WATCH lock lock_times
OK

redis 127.0.0.1:6379> UNWATCH
OK

Redis Transactions

Other Extensions