Sha256: cfa61830a1003335db488896fa6113b00a8cc8a99aa8e42be26f0f521de7efe7
Contents?: true
Size: 289 Bytes
Versions: 2
Compression:
Stored size: 289 Bytes
Contents
module Sidekiq::LimitFetch::Singleton def self.extended(klass) klass.instance_variable_set :@instances, {} end def new(*args) @instances[args] ||= super end alias [] new def instances @instances.values end def reset_instances! @instances = {} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-limit_fetch-2.4.2 | lib/sidekiq/limit_fetch/singleton.rb |
sidekiq-limit_fetch-2.4.1 | lib/sidekiq/limit_fetch/singleton.rb |