class Limiter::Memory

Defined in:

limiter/memory.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 #

[View source]

Instance Method Detail

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

[View source]
def clear #

[View source]
def entries : Array(Limiter::Memory::Entry) #

[View source]
def finalize #

[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]
def stop #

[View source]