Module: Sidekiq::ServerMiddleware

Overview

Server-side middleware must import this Module in order to get access to server resources during ‘call`.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config.



7
8
9
# File 'lib/sidekiq/middleware/modules.rb', line 7

def config
  @config
end

Instance Method Details

#loggerObject



12
13
14
# File 'lib/sidekiq/middleware/modules.rb', line 12

def logger
  config.logger
end

#redis(&block) ⇒ Object



16
17
18
# File 'lib/sidekiq/middleware/modules.rb', line 16

def redis(&block)
  config.redis(&block)
end

#redis_poolObject



8
9
10
# File 'lib/sidekiq/middleware/modules.rb', line 8

def redis_pool
  config.redis_pool
end