FIX: Allow PresenceChannel to work on Redis 6.0 (#14178)

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

diff --git a/lib/presence_channel.rb b/lib/presence_channel.rb
index 14bd441..210b0f2 100644
--- a/lib/presence_channel.rb
+++ b/lib/presence_channel.rb
@@ -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
 

GitHub sha: 01e2836071492db464ebd6f33ce6d499057ec8f5

This commit appears in #14178 which was approved by eviltrout. It was merged by davidtaylorhq.