class Kemal::Session::PostgresEngine
- Kemal::Session::PostgresEngine
- Kemal::Session::Engine
- Reference
- Object
Defined in:
kemal-session-postgres.crConstructors
Macro Summary
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)
- #cache : Hash(String, Kemal::Session::PostgresEngine::StorageInstance)
- #cache=(cache : Hash(String, Kemal::Session::PostgresEngine::StorageInstance))
- #cache_times : Hash(String, Time)
- #cache_times=(cache_times : Hash(String, Time))
- #cache_ttl : Time::Span
- #cache_ttl=(cache_ttl : Time::Span)
- #create_session(id)
- #db_conn : DB::Database
- #db_conn=(db_conn : DB::Database)
- #destroy_all_sessions
- #destroy_session(id)
- #each_session(&)
- #engine_id : String
- #engine_id=(engine_id : String)
- #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(id) : Kemal::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)
- #is_in_cache?(id)
- #load_into_cache(id, broadcast = true)
- #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)
- #propagate_strategy : Symbol
- #propagate_strategy=(propagate_strategy : Symbol)
- #run_gc
- #save_cache(id)
- #session_exists?(id)
- #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)
Constructor Detail
def self.new(db_conn : DB::Database, sessions_table : String = "kemal_sessions", cache_ttl : Time::Span = 60.seconds, propagate_strategy : Symbol = :invalidate)
#
Macro 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)
#