Sha256: ba5f4d5d07d601b551f9a976eae481fd5578f4195d620bb2b8b88aed707fc52c
Contents?: true
Size: 307 Bytes
Versions: 13
Compression:
Stored size: 307 Bytes
Contents
require 'resque' require 'newrelic_rpm' redis_port = ENV["NEWRELIC_MULTIVERSE_REDIS_PORT"] $redis = Redis.new(:port => redis_port) Resque.redis = $redis class JobForTesting @queue = :resque_test def self.perform(key, val, sleep_duration=0) sleep sleep_duration $redis.set(key, val) end end
Version data entries
13 entries across 13 versions & 3 rubygems