class Defense::MemoryStore

Defined in:

defense/memory_store.cr

Constructors

Instance Method Summary

Instance methods inherited from class Defense::Store

exists?(unprefixed_key : String) : Bool exists?, increment(unprefixed_key : String, expires_in : Int32) : Int64 increment, prefix prefix, prefix_key(unprefixed_key : String) : String prefix_key, read(unprefixed_key : String) : Int64 | Nil read, reset reset

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def exists?(unprefixed_key : String) : Bool #

[View source]
def increment(unprefixed_key : String, expires_in : Int32) : Int64 #

[View source]
def read(unprefixed_key : String) : Int64 | Nil #

[View source]
def reset #

[View source]