Sha256: 20d60b33699a47485f34b208dac7fc4f1f49d1a15160d4980b0b6e6bc9ed08b0
Contents?: true
Size: 309 Bytes
Versions: 1
Compression:
Stored size: 309 Bytes
Contents
# frozen_string_literal: true require 'json' require 'uri' module Quiq class Client def push(job) serialized = JSON.dump(job.serialize) Async do Quiq.redis.lpush("queue:#{job.queue_name}", serialized) end end def self.push(job) new.push(job) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quiq-0.1.0 | lib/quiq/client.rb |