Sha256: 76e7e5c2975fb59904b211f97b36d7d9eccb19f0b658f75ab6205bc9057658fd
Contents?: true
Size: 466 Bytes
Versions: 16
Compression:
Stored size: 466 Bytes
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. 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
16 entries across 16 versions & 1 rubygems