Redis and Optimistic concurrency control: is it possible?
WATCH key
, GET key
, MULTI
, SET key
, then EXEC
. The EXEC
will fail if the key's value has changed since you executed the WATCH
.
http://redis.io/topics/transactions#cas
WATCH key
, GET key
, MULTI
, SET key
, then EXEC
. The EXEC
will fail if the key's value has changed since you executed the WATCH
.
http://redis.io/topics/transactions#cas