module Sidekiq::Throttled::Strategy::Base
Public Instance Methods
limit(job_args = nil)
click to toggle source
# File lib/sidekiq/throttled/strategy/base.rb, line 7 def limit(job_args = nil) @limit.respond_to?(:call) ? @limit.call(*job_args) : @limit end
Private Instance Methods
key(job_args)
click to toggle source
# File lib/sidekiq/throttled/strategy/base.rb, line 13 def key(job_args) key = @base_key.dup key << ":#{@key_suffix.call(*job_args)}" if @key_suffix key end