I have a Node.js app that preforms the following:
Apologies for the lack of clarity with the question.
After further reading, indeed I can use transactions however the area I was struggling to understand was that I need separate out the read from the update, and just wrap the update in the transaction along with using WATCH on the read. This causes the update transaction to fail if another update has taken place.
So the workflow is:
WATCH key GET key MULTI SET key EXEC
Hopefully this is useful for anyone else looking to an atomic get and update.