Sha256: 2b30066518df46ee9d1af70fd107c3c691530702ed3082cb09b68aed2227ce0e

Contents?: true

Size: 358 Bytes

Versions: 4

Compression:

Stored size: 358 Bytes

Contents

# adapter for redis-client client
class Sidekiq::Status::RedisClientAdapter
  def initialize(client)
    @client = client
  end

  def schedule_batch(key, options)
    @client.zrange(key, options[:start], options[:end], :byscore, :limit, options[:offset], options[:limit])
  end

  def method_missing(method, *args)
    @client.send(method, *args)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sidekiq-status-3.0.3 lib/sidekiq-status/redis_client_adapter.rb
sidekiq-status-3.0.2 lib/sidekiq-status/redis_client_adapter.rb
sidekiq-status-3.0.1 lib/sidekiq-status/redis_client_adapter.rb
sidekiq-status-3.0.0 lib/sidekiq-status/redis_client_adapter.rb