Sha256: 23b41c75dad7cd41dc50d1f56b11c69d2c959425751df6236890d92b39551f66
Contents?: true
Size: 779 Bytes
Versions: 1
Compression:
Stored size: 779 Bytes
Contents
require 'redis' require "pause/version" require "pause/configuration" require "pause/action" require "pause/analyzer" require "pause/redis/adapter" require 'pause/rate_limited_event' module Pause class PeriodCheck < Struct.new(:period_seconds, :max_allowed, :block_ttl) def <=>(other) self.period_seconds <=> other.period_seconds end end class SetElement < Struct.new(:ts, :count) def <=>(other) self.ts <=> other.ts end end class << self def analyzer @analyzer ||= Pause::Analyzer.new end def adapter @adapter ||= Pause::Redis::Adapter.new(config) end def configure(&block) @configuration = Pause::Configuration.new.configure(&block) end def config @configuration end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pause-0.0.6 | lib/pause.rb |