Make redis backend more portable to older versions

This commit is contained in:
Andrew Godwin 2015-06-15 00:44:52 -07:00
parent 2096d6a9e6
commit e9b8632b6c

View File

@ -32,7 +32,10 @@ class RedisChannelBackend(BaseChannelBackend):
self.connection.set(
key,
json.dumps(message),
ex = self.expiry + 10,
)
self.connection.expire(
key,
self.expiry + 10,
)
# Add key to list
self.connection.rpush(