title: Does Redis need locking?
body: <p>I read that Redis is single threaded and all commands are atomic. But there are also references talk about locks in Redis, e.g. <a href="https://redis.io/topics/distlock" rel="nofollow noreferrer">https://redis.io/topics/distlock</a></p>
  
  <p>It is not clear to me why Redis still need locks if it is single threaded. Can someone please explain? </p>