Sha256: 0e2adc836071831f3a6fde7e851cb8af52f22053c41527a8762a42a6600b7c1c
Contents?: true
Size: 520 Bytes
Versions: 1
Compression:
Stored size: 520 Bytes
Contents
require_relative "upperkut/version" require_relative 'upperkut/worker' require 'redis' module Upperkut class Configuration attr_accessor :batch_size, :redis, :strategy, :max_wait, :polling_interval def self.default new.tap do |config| config.batch_size = 1_000 config.redis = Redis.new config.max_wait = Integer(ENV['UPPERKUT_MAX_WAIT'] || 20) config.polling_interval = Integer(ENV['UPPERKUT_POLLING_INTERVAL'] || 5) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
upperkut-0.1.0 | lib/upperkut.rb |