Sha256: 3e7e51984155025899c67a4b7fffe383425574b15071ae32bb9732dd65b547f3

Contents?: true

Size: 524 Bytes

Versions: 2

Compression:

Stored size: 524 Bytes

Contents

module SidekiqUniqueJobs
  class Config
    def self.unique_prefix=(prefix)
      @unique_prefix = prefix
    end

    def self.unique_prefix
      @unique_prefix || "sidekiq_unique"
    end

    def self.unique_args_enabled=(enabled)
      @unique_args_enabled = enabled
    end

    def self.unique_args_enabled?
      @unique_args_enabled || false
    end

    def self.default_expiration=(expiration)
      @expiration = expiration
    end

    def self.default_expiration
      @expiration || 30 * 60
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-2.6.6 lib/sidekiq-unique-jobs/config.rb
sidekiq-unique-jobs-2.6.5 lib/sidekiq-unique-jobs/config.rb