Lock
Also written: SET NX PX, NX
A key that lets only one caller do a job at a time. `SET key 1 NX PX 5000` sets it only if absent and expires in 5 seconds, so one request rebuilds the menu while others wait.
Also written: SET NX PX, NX
A key that lets only one caller do a job at a time. `SET key 1 NX PX 5000` sets it only if absent and expires in 5 seconds, so one request rebuilds the menu while others wait.