Module: Sidekiq
- Defined in:
- lib/sidekiq/history.rb,
lib/sidekiq/history/version.rb,
lib/sidekiq/history/middleware.rb,
lib/sidekiq/history/web_extension.rb
Defined Under Namespace
Modules: History
Class Method Summary collapse
Class Method Details
.history_max_count ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/sidekiq/history.rb', line 11 def self.history_max_count # => use default 1000 unless specified in config. Max is 4294967295 per Redis Sorted Set limit if defined? MAX_COUNT hmc = [MAX_COUNT, 4294967295].min else hmc = 1000 end return hmc if @history_max_count.nil? @history_max_count end |
.history_max_count=(value) ⇒ Object
7 8 9 |
# File 'lib/sidekiq/history.rb', line 7 def self.history_max_count=(value) @history_max_count = value end |