class Limiter::Concurrency::Redis(T)

Defined in:

limiter/concurrency_redis.cr

Constructors

Instance Method Summary

Instance methods inherited from class Limiter

add_limit(seconds : Time::Span, count) add_limit, clear clear, request!(force = false, &) request!, request?(force = false, &) request?

Constructor methods inherited from class Limiter

new new

Constructor Detail

def self.new(redis : T, name : String, max_count : Int32) #

[View source]

Instance Method Detail

def clear #

[View source]
def finalize #

[View source]
def increment_request #

[View source]
def limited? : Tuple(Bool, Time::Span | Nil) #

[View source]
def stats #

[View source]