Module: Sidekiq::ServerMiddleware
- Included in:
- CurrentAttributes::Load, CurrentAttributes::Save, Job::InterruptHandler, Metrics::Middleware, Middleware::I18n::Client, Middleware::I18n::Server
- Defined in:
- lib/sidekiq/middleware/modules.rb
Overview
Server-side middleware must import this Module in order to get access to server resources during ‘call`.
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
7 8 9 |
# File 'lib/sidekiq/middleware/modules.rb', line 7 def config @config end |
Instance Method Details
#logger ⇒ Object
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_pool ⇒ Object
8 9 10 |
# File 'lib/sidekiq/middleware/modules.rb', line 8 def redis_pool config.redis_pool end |