# File lib/rack/attack/cache.rb, line 17 def count(unprefixed_key, period) epoch_time = Time.now.to_i expires_in = period - (epoch_time % period) key = "#{prefix}:#{(epoch_time/period).to_i}:#{unprefixed_key}" do_count(key, expires_in) end
# File lib/rack/attack/cache.rb, line 24 def read(unprefixed_key) store.read("#{prefix}:#{unprefixed_key}") end
Generated with the Darkfish Rdoc Generator 2.