Sha256: 7ed5fe1dbe587726e20a735cd151058d46733cbb9b97340cd95759d36b241281
Contents?: true
Size: 599 Bytes
Versions: 5
Compression:
Stored size: 599 Bytes
Contents
# Copyright (c) 2016 SolarWinds, LLC. # All rights reserved. class RemoteCallWorkerJob include Sidekiq::Worker def perform(*args) # Make some random Dalli (memcache) calls and top it # off with an excon call to the background rack webserver. @dc = Dalli::Client.new @dc.get(rand(10).to_s) uri = URI('http://gameface.in/gamers') http = Net::HTTP.new(uri.host, uri.port) request = Net::HTTP::Get.new(uri.request_uri) http.request(request) @dc.get(rand(10).to_s) @dc.get(rand(10).to_s) @dc.get_multi([:one, :two, :three, :four, :five, :six]) end end
Version data entries
5 entries across 5 versions & 2 rubygems