Sha256: f3e2326b1f6ca998d2ff98bd1006b3767c7366292d6774f13aabcb5e7644413c
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 Bytes
Contents
module QPush module Server module Apis class Queue < Base def initialize(job) @job = job end def call queue_job end private def queue_job QPush.redis.with do |conn| conn.hincrby(QPush.keys.stats, 'queued', 1) conn.lpush(QPush.keys.queue, @job.to_json) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qpush-0.1.4 | lib/qpush/server/apis/queue.rb |