mirror of
https://github.com/django/daphne.git
synced 2025-06-29 01:13:16 +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(
|
self.connection.set(
|
||||||
key,
|
key,
|
||||||
json.dumps(message),
|
json.dumps(message),
|
||||||
ex = self.expiry + 10,
|
)
|
||||||
|
self.connection.expire(
|
||||||
|
key,
|
||||||
|
self.expiry + 10,
|
||||||
)
|
)
|
||||||
# Add key to list
|
# Add key to list
|
||||||
self.connection.rpush(
|
self.connection.rpush(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user