class Session::MemoryStore(T)

Defined in:

stores/memory_store.cr

Instance Method Summary

Instance methods inherited from class Session::Store(T)

[](key : String) : SessionId(T) [], []=(key : String, session : SessionId(T)) : SessionId(T) []=, []?(key : String) : SessionId(T) | Nil []?, clear clear, cookie(host : String) cookie, create create, current_session : SessionId(T) current_session, data data, delete(key : String)
delete
delete
, load_from(request_cookies : HTTP::Cookies) : SessionId(T) | Nil load_from, session_id session_id, set_cookies(response_cookies : HTTP::Cookies, host : String = "") set_cookies, size : Int64 size, valid? valid?

Class methods inherited from class Session::Store(T)

provider(**args) : Store(T) provider

Instance methods inherited from module Session::Provider

encrypt_and_sign(value) encrypt_and_sign, on(event : Symbol, *args) on, prefixed(session_id) prefixed, session_key session_key, storage : String storage, timeout timeout, verify_and_decrypt(value) verify_and_decrypt

Instance Method Detail

def [](key : String) : SessionId(T) #

[View source]
def []=(key : String, session : SessionId(T)) : SessionId(T) #

[View source]
def []?(key : String) : SessionId(T) | Nil #

[View source]
def clear #

[View source]
def delete(key : String) #

[View source]
def sessions #

[View source]
def size : Int64 #

[View source]
def storage : String #

Gets the session manager store type


[View source]