class Kemal::Session::RethinkDBEngine

Defined in:

kemal-session-rethinkdb.cr

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(connection : RethinkDB::Connection, sessiontable : String = "sessions", cachetime : Int32 = 5) #

[View source]

Instance Method Detail

def all_sessions : Array(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 : String) : Bool #

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

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

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

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

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

[View source]
def run_gc #

[View source]
def save_cache(session_id) #

[View source]
def session_exists?(session_id : String) : Bool #

[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]