In Redis, the MSETNX
command allows us to set multiple keys at once, but only if none of them exist.
This allows us to set multiple keys representing different fields of a single logical object in a way that ensures that either all the fields are set, or none are set.
Continue reading