Class: Sidekiq::Status::RedisClientAdapter
- Inherits:
-
Object
- Object
- Sidekiq::Status::RedisClientAdapter
- Defined in:
- lib/sidekiq-status/redis_client_adapter.rb
Overview
adapter for redis-client client
Instance Method Summary collapse
-
#initialize(client) ⇒ RedisClientAdapter
constructor
A new instance of RedisClientAdapter.
- #method_missing(method, *args) ⇒ Object
- #schedule_batch(key, options) ⇒ Object
Constructor Details
#initialize(client) ⇒ RedisClientAdapter
Returns a new instance of RedisClientAdapter.
3 4 5 |
# File 'lib/sidekiq-status/redis_client_adapter.rb', line 3 def initialize(client) @client = client end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
11 12 13 |
# File 'lib/sidekiq-status/redis_client_adapter.rb', line 11 def method_missing(method, *args) @client.send(method, *args) end |
Instance Method Details
#schedule_batch(key, options) ⇒ Object
7 8 9 |
# File 'lib/sidekiq-status/redis_client_adapter.rb', line 7 def schedule_batch(key, ) @client.zrange(key, [:start], [:end], :byscore, :limit, [:offset], [:limit]) end |