Maintenance: Use the 'hiredis' gem for increased performance.

This commit is contained in:
Martin Gruner 2021-06-30 14:04:59 +02:00
parent 1eef2a0e0f
commit 1b217645cc
3 changed files with 7 additions and 1 deletions

View file

@ -29,6 +29,7 @@ gem 'delayed_job_active_record'
# core - websocket
gem 'em-websocket'
gem 'eventmachine'
gem 'hiredis', require: false
gem 'redis', require: false
# core - password security

View file

@ -251,6 +251,7 @@ GEM
guard-compat (~> 1.1)
hashdiff (0.3.8)
hashie (3.6.0)
hiredis (0.6.3)
htmlentities (4.3.4)
http (3.3.0)
addressable (~> 2.3)
@ -272,6 +273,7 @@ GEM
ice_cube (0.16.3)
inflection (1.0.0)
interception (0.5)
ipaddr (1.2.2)
json (2.3.0)
jwt (2.2.2)
kgio (2.11.2)
@ -370,6 +372,7 @@ GEM
omniauth (~> 1.5)
omniauth-oauth2 (>= 1.4.0)
openssl (2.1.2)
ipaddr
parallel (1.20.1)
parser (3.0.1.1)
ast (~> 2.4.1)
@ -630,6 +633,7 @@ DEPENDENCIES
guard
guard-livereload
guard-symlink
hiredis
htmlentities
icalendar
icalendar-recurrence

View file

@ -9,7 +9,8 @@ class Sessions::Store::Redis
def initialize
# Only load redis if it is really used.
require 'redis'
@redis = Redis.new
require 'hiredis'
@redis = Redis.new( driver: :hiredis )
end
def create(client_id, data)