FIX: Allow PresenceChannel to work on Redis 6.0 (#14178)
The `ZRANGE ... BYSCORE` syntax was only added in 6.2. We can use the older `ZRANGEBYSCORE` instead
This commit is contained in:
parent
db0429da1f
commit
01e2836071
|
@ -584,7 +584,7 @@ class PresenceChannel
|
|||
local time = ARGV[2]
|
||||
local mutex_value = ARGV[3]
|
||||
|
||||
local expire = redis.call('ZRANGE', zlist_key, '-inf', time, 'BYSCORE')
|
||||
local expire = redis.call('ZRANGEBYSCORE', zlist_key, '-inf', time)
|
||||
|
||||
local has_mutex = false
|
||||
|
||||
|
|
Loading…
Reference in New Issue