Class: Sidekiq::Status::RedisClientAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq-status/redis_client_adapter.rb

Overview

adapter for redis-client client

Instance Method Summary collapse

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, options)
  @client.zrange(key, options[:start], options[:end], :byscore, :limit, options[:offset], options[:limit])
end