mirror of
https://github.com/django/daphne.git
synced 2025-04-20 00:32:09 +03:00
Make redis backend more portable to older versions
This commit is contained in:
parent
2096d6a9e6
commit
e9b8632b6c
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user