Sha256: 3e86f14828a97dac98739dc7d756ef1465ef479eb9a1f5644fc9abb8f6996d89
Contents?: true
Size: 441 Bytes
Versions: 32
Compression:
Stored size: 441 Bytes
Contents
# (c) Copyright IBM Corp. 2021 # (c) Copyright Instana Inc. 2018 require "redis" require "net/http" class FastJob @queue = :critical def self.perform(*args) raise 'Invalid Args' unless args.empty? if 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
32 entries across 32 versions & 1 rubygems