UNWATCH
Clears the connection's watched-key registrations.
Transactions · Example verified
Syntax covered here
UNWATCHAfter UNWATCH, a change from another connection does not abort the tested transaction, and its read sees the new value.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> WATCH sample
"OK"
# connection: default
> UNWATCH
"OK"
# connection: other
> SET sample other
"OK"
# connection: default
> MULTI
"OK"
# connection: default
> GET sample
"QUEUED"
# connection: default
> EXEC
["other"]