class Limiter::Redis(T)

Defined in:

limiter/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 = "default") #

[View source]

Instance Method Detail

def add_limit(interval : Time::Span, count) #

[View source]
def clear #

[View source]
def entries #

[View source]
def increment_request #

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

[View source]
def next_usage_after #

[View source]
def stats #

[View source]