class Kemal::Session::RedisEngine

Defined in:

kemal-session-redis.cr

Constructors

Instance Method Summary

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:") #

[View source]

Instance Method Detail

def all_sessions : Array(Kemal::Session) #

[View source]
def bigint(session_id : String, k : String, v : Int64) #

[View source]
def bigint(session_id : String, k : String) : Int64 #

[View source]
def bigint?(session_id : String, k : String) : Int64 | Nil #

[View source]
def bigints(session_id : String) : Hash(String, Int64) #

[View source]
def bool(session_id : String, k : String, v : Bool) #

[View source]
def bool(session_id : String, k : String) : Bool #

[View source]
def bool?(session_id : String, k : String) : Bool | Nil #

[View source]
def bools(session_id : String) : Hash(String, Bool) #

[View source]
def create_session(session_id : String) #

[View source]
def destroy_all_sessions #

[View source]
def destroy_session(session_id : String) #

[View source]
def each_session(&) #

[View source]
def float(session_id : String, k : String, v : Float64) #

[View source]
def float(session_id : String, k : String) : Float64 #

[View source]
def float?(session_id : String, k : String) : Float64 | Nil #

[View source]
def floats(session_id : String) : Hash(String, Float64) #

[View source]
def get_session(session_id : String) : Kemal::Session | Nil #

[View source]
def int(session_id : String, k : String, v : Int32) #

[View source]
def int(session_id : String, k : String) : Int32 #

[View source]
def int?(session_id : String, k : String) : Int32 | Nil #

[View source]
def ints(session_id : String) : Hash(String, Int32) #

[View source]
def is_in_cache?(session_id) #

[View source]
def load_into_cache(session_id : String) #

[View source]
def object(session_id : String, k : String, v : Kemal::Session::StorableObject::StorableObjectContainer) #

[View source]
def object(session_id : String, k : String) : Kemal::Session::StorableObject::StorableObjectContainer #

[View source]
def object?(session_id : String, k : String) : Kemal::Session::StorableObject::StorableObjectContainer | Nil #

[View source]
def objects(session_id : String) : Hash(String, Kemal::Session::StorableObject::StorableObjectContainer) #

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

[View source]
def prefix_session(session_id : String) #

[View source]
def run_gc #

[View source]
def save_cache #

[View source]
def string(session_id : String, k : String, v : String) #

[View source]
def string(session_id : String, k : String) : String #

[View source]
def string?(session_id : String, k : String) : String | Nil #

[View source]
def strings(session_id : String) : Hash(String, String) #

[View source]

Macro Detail

macro define_delegators(vars) #

[View source]