Sha256: b12016749814530d929efb8d604af81c0c4f4c8fc6f32b9f839cd5b094199ba6
Contents?: true
Size: 601 Bytes
Versions: 5
Compression:
Stored size: 601 Bytes
Contents
# Copyright (c) 2016 SolarWinds, LLC. # All rights reserved. class DJRemoteCallWorkerJob @queue = :critical def self.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