andymccurdy/redis-py — Issue #216: wrong arguments order in setex
Author: seriyps
Created: 2011-11-23 17:00:53+00:00
State: open

https://github.com/andymccurdy/redis-py/blob/2.4.10/redis/client.py#L513

`def setex(self, name, time, value):`

but really there is `def setex(self, name, value, time):`

see unittests https://github.com/andymccurdy/redis-py/blob/2.4.10/tests/server_commands.py#L237

Also, redis accept parameters in `name, time, value` order. see http://redis.io/commands/setex

So, this is not a bug really, but I spend about a hour trying to resolve this...