jrief/django-websocket-redis — pull request #30 by marcelchastain (2014-04-27 04:46:57+00:00)
Title: use _connection.setex() for expiring redis values

As discussed in #25:

in ws4redis.redis_store.RedisStore in publish_message, change
```python
self._connection.set(channel, message, ex=expire)
```

to

```python
self._connection.setex(channel, expire, message)
```

the redis `SET` command does not take a 3rd argument. What I believe was meant was to set a value that expires after a number of seconds, which is the redis `SETEX`command. The py-redis `setex` method is called like `setex(name, time, value)`.

This resolves the "Wrong number of argument for 'set'" error.