class Rack::PooledThrottle::MemcachedThrottle

Public Class Methods

new(app, options={}) click to toggle source
Calls superclass method
# File lib/rack/pooledthrottle/memcached_throttle.rb, line 4
def initialize(app, options={})
  super
end

Public Instance Methods

query_cache?(request) click to toggle source
# File lib/rack/pooledthrottle/memcached_throttle.rb, line 8
def query_cache?(request)
    ((pool.with {|cache| cache.incr(cache_key(request), 1, ttl, 1)}) <= max)
end