2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-03-11 04:25:24 -05:00
|
|
|
# https://github.com/redis/redis-rb/pull/591
|
|
|
|
class Redis
|
|
|
|
class Client
|
|
|
|
alias_method :old_initialize, :initialize
|
|
|
|
|
|
|
|
def initialize(options = {})
|
|
|
|
old_initialize(options)
|
|
|
|
|
|
|
|
if options.include?(:connector) && options[:connector].is_a?(Class)
|
|
|
|
@connector = options[:connector].new(@options)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|