class Kemal::Session::RedisEngine
- Kemal::Session::RedisEngine
- Kemal::Session::Engine
- Reference
- Object
Defined in:
kemal-session-redis.crConstructors
Instance Method Summary
- #all_sessions : Array(Kemal::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)
- #destroy_all_sessions
- #destroy_session(session_id : String)
- #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) : 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?(session_id)
- #load_into_cache(session_id : String)
- #object(session_id : String, k : String, v : Kemal::Session::StorableObject::StorableObjectContainer)
- #object(session_id : String, k : String) : Kemal::Session::StorableObject::StorableObjectContainer
- #object?(session_id : String, k : String) : Kemal::Session::StorableObject::StorableObjectContainer | Nil
- #objects(session_id : String) : Hash(String, Kemal::Session::StorableObject::StorableObjectContainer)
- #parse_session_id(key : String)
- #prefix_session(session_id : String)
- #run_gc
- #save_cache
- #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
Constructor Detail
def self.new(host = "localhost", port = 6379, password = nil, database = 0, capacity = 20, timeout = 2.0, unixsocket = nil, pool = nil, key_prefix : String = "kemal:session:")
#
Instance Method Detail
def object(session_id : String, k : String, v : Kemal::Session::StorableObject::StorableObjectContainer)
#
def object(session_id : String, k : String) : Kemal::Session::StorableObject::StorableObjectContainer
#
def object?(session_id : String, k : String) : Kemal::Session::StorableObject::StorableObjectContainer | Nil
#
def objects(session_id : String) : Hash(String, Kemal::Session::StorableObject::StorableObjectContainer)
#