Sha256: b6486badd16589ff907d998860e1e1a45610ed26c810b1e25936324fa19f8c6e
Contents?: true
Size: 590 Bytes
Versions: 17
Compression:
Stored size: 590 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 "newrelic_rpm" REDIS_PORT = ENV['NEWRELIC_MULTIVERSE_REDIS_PORT'] REDIS_URL = "redis://localhost:#{REDIS_PORT}/0" Sidekiq.configure_server do |config| config.redis = { :url => REDIS_URL } end Sidekiq.configure_client do |config| config.redis = { :url => REDIS_URL } end $redis = Redis.new(:port => REDIS_PORT) class TestWorker include Sidekiq::Worker def perform(key, val) $redis.sadd(key, val) end end
Version data entries
17 entries across 17 versions & 1 rubygems