Sha256: 30b6eda999824198ceb60e5cb9697f3b0501b7b73aae149741bda776a82328d2
Contents?: true
Size: 405 Bytes
Versions: 13
Compression:
Stored size: 405 Bytes
Contents
require "redis" require "net/http" class FastJob @queue = :critical def self.perform if ENV.key?('REDIS_URL') redis = Redis.new(:url => ENV['REDIS_URL']) elsif ENV.key?('REDIS_URL') redis = Redis.new(:url => ENV['REDIS_URL']) else redis = Redis.new(:url => 'redis://localhost:6379') end dt = Time.now redis.set('ts', dt) redis.set(:nb_id, 2) end end
Version data entries
13 entries across 13 versions & 1 rubygems