Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Imported a Rackup script example for Redis.

  • Loading branch information...
commit e8d203f4aff43610a13e84c95975d07877d7eb16 1 parent 3ffbfbe
@bendiken bendiken authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 etc/redis.ru
View
8 etc/redis.ru
@@ -0,0 +1,8 @@
+$:.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"] }
Please sign in to comment.
Something went wrong with that request. Please try again.