Sha256: 89a1353c223d86dea9af6ec27ed8733391370978a50a39b16da2391bbd4dd70f
Contents?: true
Size: 596 Bytes
Versions: 30
Compression:
Stored size: 596 Bytes
Contents
# Copyright (c) 2015 AppNeta, Inc. # 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
30 entries across 30 versions & 1 rubygems