andymccurdy/redis-py — pull request #420 by gzzo (2014-01-04 00:46:25+00:00)
Title: Changed Lock to implement lock pattern guideline per http://redis.io/com...

Currently Lock is implemented using SETNX.

On http://redis.io/commands/setnx it specifies:
>NOTE: Starting with Redis 2.6.12 it is possible to create a much simpler locking primitive using the SET command to acquire the lock...

This is an implementation of Lock using SET with the according tests.