module Sidekiq::History

Constants

LIST_KEY
VERSION

Public Class Methods

count() click to toggle source
# File lib/sidekiq/history.rb, line 59
def self.count
  Sidekiq.redis { |r| r.zcard(LIST_KEY) }
end
reset_history(options = {}) click to toggle source
# File lib/sidekiq/history.rb, line 50
def self.reset_history(options = {})
  Sidekiq.redis do |c|
    c.multi do
      c.del(LIST_KEY)
      c.set('stat:history', 0) if options[:counter] || options['counter']
    end
  end
end