Sha256: e4bec196f1d77667c45eea191b0c2d6569d5b90d89f308fd3367d3d2e3a76f38
Contents?: true
Size: 595 Bytes
Versions: 1
Compression:
Stored size: 595 Bytes
Contents
module SidekiqUniqueJobs class Config < OpenStruct TESTING_CONSTANT ||= 'Testing'.freeze CONFIG_ACCESSORS = [ :unique_prefix, :default_expiration, :default_lock, :redis_mode ].freeze def inline_testing_enabled? testing_enabled? && Sidekiq::Testing.inline? end def mocking? inline_testing_enabled? && redis_test_mode.to_sym == :mock end def testing_enabled? Sidekiq.const_defined?(TESTING_CONSTANT) && Sidekiq::Testing.enabled? end def unique_args_enabled? config.unique_args_enabled end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-unique-jobs-4.0.0 | lib/sidekiq_unique_jobs/config.rb |