Sha256: 3662d602376a6df132d026b8a468b1fe7f12840b29e100af8b1a4f6df22b34b3
Contents?: true
Size: 440 Bytes
Versions: 4
Compression:
Stored size: 440 Bytes
Contents
module Sidekiq::QueueMetrics class Storage class << self def set_stats(key = stats_key, value) Sidekiq.redis_pool.with do |conn| conn.set(key, value) end end def get_stats(key = stats_key) Sidekiq.redis_pool.with do |conn| conn.get(key) end end def stats_key Sidekiq::QueueMetrics.storage_location || 'queue_stats' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems