Maintenance: Use the 'hiredis' gem for increased performance.
This commit is contained in:
parent
1eef2a0e0f
commit
1b217645cc
3 changed files with 7 additions and 1 deletions
1
Gemfile
1
Gemfile
|
@ -29,6 +29,7 @@ gem 'delayed_job_active_record'
|
||||||
# core - websocket
|
# core - websocket
|
||||||
gem 'em-websocket'
|
gem 'em-websocket'
|
||||||
gem 'eventmachine'
|
gem 'eventmachine'
|
||||||
|
gem 'hiredis', require: false
|
||||||
gem 'redis', require: false
|
gem 'redis', require: false
|
||||||
|
|
||||||
# core - password security
|
# core - password security
|
||||||
|
|
|
@ -251,6 +251,7 @@ GEM
|
||||||
guard-compat (~> 1.1)
|
guard-compat (~> 1.1)
|
||||||
hashdiff (0.3.8)
|
hashdiff (0.3.8)
|
||||||
hashie (3.6.0)
|
hashie (3.6.0)
|
||||||
|
hiredis (0.6.3)
|
||||||
htmlentities (4.3.4)
|
htmlentities (4.3.4)
|
||||||
http (3.3.0)
|
http (3.3.0)
|
||||||
addressable (~> 2.3)
|
addressable (~> 2.3)
|
||||||
|
@ -272,6 +273,7 @@ GEM
|
||||||
ice_cube (0.16.3)
|
ice_cube (0.16.3)
|
||||||
inflection (1.0.0)
|
inflection (1.0.0)
|
||||||
interception (0.5)
|
interception (0.5)
|
||||||
|
ipaddr (1.2.2)
|
||||||
json (2.3.0)
|
json (2.3.0)
|
||||||
jwt (2.2.2)
|
jwt (2.2.2)
|
||||||
kgio (2.11.2)
|
kgio (2.11.2)
|
||||||
|
@ -370,6 +372,7 @@ GEM
|
||||||
omniauth (~> 1.5)
|
omniauth (~> 1.5)
|
||||||
omniauth-oauth2 (>= 1.4.0)
|
omniauth-oauth2 (>= 1.4.0)
|
||||||
openssl (2.1.2)
|
openssl (2.1.2)
|
||||||
|
ipaddr
|
||||||
parallel (1.20.1)
|
parallel (1.20.1)
|
||||||
parser (3.0.1.1)
|
parser (3.0.1.1)
|
||||||
ast (~> 2.4.1)
|
ast (~> 2.4.1)
|
||||||
|
@ -630,6 +633,7 @@ DEPENDENCIES
|
||||||
guard
|
guard
|
||||||
guard-livereload
|
guard-livereload
|
||||||
guard-symlink
|
guard-symlink
|
||||||
|
hiredis
|
||||||
htmlentities
|
htmlentities
|
||||||
icalendar
|
icalendar
|
||||||
icalendar-recurrence
|
icalendar-recurrence
|
||||||
|
|
|
@ -9,7 +9,8 @@ class Sessions::Store::Redis
|
||||||
def initialize
|
def initialize
|
||||||
# Only load redis if it is really used.
|
# Only load redis if it is really used.
|
||||||
require 'redis'
|
require 'redis'
|
||||||
@redis = Redis.new
|
require 'hiredis'
|
||||||
|
@redis = Redis.new( driver: :hiredis )
|
||||||
end
|
end
|
||||||
|
|
||||||
def create(client_id, data)
|
def create(client_id, data)
|
||||||
|
|
Loading…
Reference in a new issue