Method: Sidekiq::Config#new_redis_pool

Defined in:
lib/sidekiq/config.rb

#new_redis_pool(size, name = "unset") ⇒ Object



163
164
165
166
167
# File 'lib/sidekiq/config.rb', line 163

def new_redis_pool(size, name = "unset")
  # connection pool is lazy, it will not create connections unless you actually need them
  # so don't be skimpy!
  RedisConnection.create({size: size, logger: logger, pool_name: name}.merge(@redis_config))
end