class Sidekiq::Status::RedisAdapter

adapter for redis-rb client

Public Class Methods

new(client) click to toggle source
# File lib/sidekiq-status/redis_adapter.rb, line 3
def initialize(client)
  @client = client
end

Public Instance Methods

method_missing(method, *args) click to toggle source
# File lib/sidekiq-status/redis_adapter.rb, line 15
def method_missing(method, *args)
  @client.send(method, *args)
end
scan(**options, &block) click to toggle source
# File lib/sidekiq-status/redis_adapter.rb, line 7
def scan(**options, &block)
  @client.scan_each(**options, &block)
end
schedule_batch(key, options) click to toggle source
# File lib/sidekiq-status/redis_adapter.rb, line 11
def schedule_batch(key, options)
  @client.zrangebyscore key, options[:start], options[:end], limit: [options[:offset], options[:limit]]
end