ionelmc/python-redis-lock — pull request #4 by robbyt (2013-11-04 23:20:11+00:00)
Title: redis >= 2.6.12 required

According to http://redis.io/commands/set the `SET` type added the `ex` argument at redis 2.6.12.

I am testing with redis 2.6.7, and I get the following error:

```python
from django.core.cache import cache
with cache.lock('hello'):
print 'I got the lock'
...:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
in ()
----> 1 with cache.lock('me'):
2 print 'got the lock'
3

.../lib/python2.7/site-packages/redis_lock/__init__.pyc in __enter__(self, blocking)
37 busy = True
38 while busy:
---> 39 busy = not self._client.set(self._name, self._tok, nx=True, ex=self._expire)
40 if busy:
41 if blocking:

TypeError: set() got an unexpected keyword argument 'ex'
```