Thank you for providing your updated version! Do you think it is possible to implement a safe Redis SetNX() equivalent (only set(), if the key does not exist)? How would you achieve this?