watch
UK[wɒtʃ] US[wɑ:tʃ]
vt. Watch, pay attention; guard, monitor; wait (for opportunities, etc.); pay close attention
n. Watch; night watch, duty; guard, surveillance; person on duty
vi.Watch; watch; watch; guard
Third person singular: watches Plural: watches Now Participle: watching Past tense: watched Past participle: watched
redis UNWATCH command syntax
Function:Cancel the monitoring of all keys by the WATCH command.
Syntax: UNWATCH
Description: If after executing the WATCH command, the EXEC command or the DISCARD command is executed first, then it will not Need to execute UNWATCH again. Because the EXEC command will execute the transaction, the effect of the WATCH command has already been produced; and the DISCARD command will also cancel all monitoring of the key when canceling the transaction, so after these two commands are executed, there is no need to execute UNWATCH.
Available versions: >= 2.2.0
Time complexity: O(1)
Return: is always OK.
redis UNWATCH command example
redis> WATCH lock lock_times OK redis> UNWATCH OK