Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
rrq / lib / rrq / keys.rb
Size: Mime:
module Rrq
  class Keys
    def self.queues
      "rrq:queues"
    end

    def self.partitions_for(name)
      "rrq:queue:#{name}:all_partitions"
    end

    def self.active_partitions_for(name)
      "rrq:queue:#{name}:active_partitions"
    end

    def self.queue(name, partition)
      "rrq:queue:#{name}:#{partition}"
    end

    def self.working_queue(name, partition)
      "#{queue(name, partition)}:working"
    end
  end
end