Class: WarpCore::RedisPoolInstance
- Inherits:
-
Object
- Object
- WarpCore::RedisPoolInstance
- Defined in:
- lib/warpcore/sidekiq.rb
Overview
This class simply delegates every method call to the Sidekiq redis connection. Use RedisPoolInstance.new to get a shared redis connection.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object (private)
80 81 82 83 84 |
# File 'lib/warpcore/sidekiq.rb', line 80 def method_missing(meth, *args, &block) Sidekiq.redis do |connection| connection.send(meth, *args, &block) end end |