WATCH is
Monitor one (or more) keys. If this (or these) keys are modified by other commands before the transaction is executed, the transaction will be interrupted.
As for how you're going to use it, think about it. . Are you talking about N processes writing the value of a key at the same time? Why?
I recommend you to go to http://redisdoc.com/ for the redis command API, it is very comprehensive
The description of
WATCH is
Monitor one (or more) keys. If this (or these) keys are modified by other commands before the transaction is executed, the transaction will be interrupted.
As for how you're going to use it, think about it. . Are you talking about N processes writing the value of a key at the same time? Why?
I recommend you to go to http://redisdoc.com/ for the redis command API, it is very comprehensive