SETNX key value Available since: 1.0.0 Time complexity: O(1) ACL categories: @write, @string, @fast, Set key to hold string value if key does not exist. In that case, it is equal to SET. When key already holds a value, no operation is performed. SETNX is short for "SET if Not eXists". Examples SETNX mykey "Hello" SETNX mykey "World" GET mykey Design pattern: Locking with SETNX Please note that: Th