On the redis documentation, I found a primitive lock can be implemented via SETNX:
http://redis.io/commands/setnx
C4 sends SETNX lo
follow the link nice project explaining locking http://redis.io/topics/distlock https://github.com/mrniko/redisson