Sha256: a1ae8b80b40685aaf6805c081064bc461912c5b066de6a226c9c69ad77680f73

Contents?: true

Size: 301 Bytes

Versions: 3

Compression:

Stored size: 301 Bytes

Contents

module QPush
  module Client
    class Job < QPush::Base::Job
      def queue
        Client.redis do |conn|
          conn.hincrby("#{QPush::Base::KEY}:#{@namespace}:stats", 'queued', 1)
          conn.lpush("#{QPush::Base::KEY}:#{@namespace}:queue", to_json)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qpush-0.1.8 lib/qpush/client/job.rb
qpush-0.1.7 lib/qpush/client/job.rb
qpush-0.1.6 lib/qpush/client/job.rb