Sha256: ac60e5d4df1fef30a7fe74150dc5008220f13764cc6d2ce9c4c989fd7b252559
Contents?: true
Size: 256 Bytes
Versions: 9
Compression:
Stored size: 256 Bytes
Contents
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rack/throttle' gem 'redis' require 'redis' use Rack::Throttle::Interval, :min => 3.0, :cache => Redis.new run lambda { |env| [200, {'Content-Type' => 'text/plain'}, "Hello, world!\n"] }
Version data entries
9 entries across 9 versions & 3 rubygems