title: Redis INCR and multi processes?
body: <p>I used to use PostgreSQL sequence <code>SELECT nextval('number');</code> to make sure I get a new number even if there are several clients since <code>nextval</code> is guaranteed to return distinct and increasing values.</p>
  
  <p>I wanted to use the same mechanism with Redis.
  I thought using the <code>INCR</code> command but I want to make sure I well understand that it will give the same guarantee than the <code>nextval</code> command?
  There is no risk of getting the same number when several processes run this command or do I have to use a Redis lock?</p>
  
  <p>Thanks</p>