class Kemal::Session::MemoryEngine
- Kemal::Session::MemoryEngine
- Kemal::Session::Engine
- Reference
- Object
Defined in:
kemal-session/engines/memory.crConstructors
Instance Method Summary
- #all_sessions : Array(Session)
- #bigint(session_id : String, k : String, v : Int64)
- #bigint(session_id : String, k : String) : Int64
- #bigint?(session_id : String, k : String) : Int64 | Nil
- #bigints(session_id : String) : Hash(String, Int64)
- #bool(session_id : String, k : String, v : Bool)
- #bool(session_id : String, k : String) : Bool
- #bool?(session_id : String, k : String) : Bool | Nil
- #bools(session_id : String) : Hash(String, Bool)
- #create_session(session_id : String)
- #delete_bigint(session_id : String, k : String)
- #delete_bool(session_id : String, k : String)
- #delete_float(session_id : String, k : String)
- #delete_int(session_id : String, k : String)
- #delete_object(session_id : String, k : String)
- #delete_string(session_id : String, k : String)
- #destroy_all_sessions
-
#destroy_session(session_id : String)
Removes session from being tracked
- #each_session(&)
- #float(session_id : String, k : String, v : Float64)
- #float(session_id : String, k : String) : Float64
- #float?(session_id : String, k : String) : Float64 | Nil
- #floats(session_id : String) : Hash(String, Float64)
- #get_session(session_id : String) : Session | Nil
- #int(session_id : String, k : String, v : Int32)
- #int(session_id : String, k : String) : Int32
- #int?(session_id : String, k : String) : Int32 | Nil
- #ints(session_id : String) : Hash(String, Int32)
- #object(session_id : String, k : String, v : Session::StorableObject::StorableObjectContainer)
- #object(session_id : String, k : String) : Session::StorableObject::StorableObjectContainer
- #object?(session_id : String, k : String) : Session::StorableObject::StorableObjectContainer | Nil
- #objects(session_id : String) : Hash(String, Session::StorableObject::StorableObjectContainer)
- #run_gc
- #string(session_id : String, k : String, v : String)
- #string(session_id : String, k : String) : String
- #string?(session_id : String, k : String) : String | Nil
- #strings(session_id : String) : Hash(String, String)
Macro Summary
-
define_delegators(vars)
Delegating int(k,v), int?(k) etc.
Instance methods inherited from class Kemal::Session::Engine
all_sessions : Array(Session)
all_sessions,
bigint(session_id : String, k : String, v : Int64)bigint(session_id : String, k : String) : Int64 bigint, bigint?(session_id : String, k : String) : Int64 | Nil bigint?, bigints(session_id : String) : Hash(String, Int64) bigints, bool(session_id : String, k : String, v : Bool)
bool(session_id : String, k : String) : Bool bool, bool?(session_id : String, k : String) : Bool | Nil bool?, bools(session_id : String) : Hash(String, Bool) bools, create_session(session_id : String) create_session, destroy_all_sessions destroy_all_sessions, destroy_session(session_id : String) destroy_session, each_session(&block : Session -> _) each_session, float(session_id : String, k : String, v : Float64)
float(session_id : String, k : String) : Float64 float, float?(session_id : String, k : String) : Float64 | Nil float?, floats(session_id : String) : Hash(String, Float64) floats, get_session(session_id : String) : Session | Nil get_session, int(session_id : String, k : String, v : Int32)
int(session_id : String, k : String) : Int32 int, int?(session_id : String, k : String) : Int32 | Nil int?, ints(session_id : String) : Hash(String, Int32) ints, object(session_id : String, k : String, v : Kemal::Session::StorableObject::StorableObjectContainer)
object(session_id : String, k : String) : Kemal::Session::StorableObject::StorableObjectContainer object, object?(session_id : String, k : String) : Kemal::Session::StorableObject::StorableObjectContainer | Nil object?, objects(session_id : String) : Hash(String, Kemal::Session::StorableObject::StorableObjectContainer) objects, run_gc run_gc, string(session_id : String, k : String, v : String)
string(session_id : String, k : String) : String string, string?(session_id : String, k : String) : String | Nil string?, strings(session_id : String) : Hash(String, String) strings
Constructor Detail
Instance Method Detail
def object(session_id : String, k : String, v : Session::StorableObject::StorableObjectContainer)
#
def object(session_id : String, k : String) : Session::StorableObject::StorableObjectContainer
#
def object?(session_id : String, k : String) : Session::StorableObject::StorableObjectContainer | Nil
#
def objects(session_id : String) : Hash(String, Session::StorableObject::StorableObjectContainer)
#