Method: Redis#initialize
- Defined in:
- lib/redis.rb
#initialize(options = {}) ⇒ Redis
Create a new client instance
82 83 84 85 86 87 88 89 |
# File 'lib/redis.rb', line 82 def initialize( = {}) @options = .dup @cluster_mode = .key?(:cluster) client = @cluster_mode ? Cluster : Client @original_client = @client = client.new() @queue = Hash.new { |h, k| h[k] = [] } @monitor = Monitor.new end |