class Armature::Session::RedisStore

Defined in:

redis_session.cr

Constructors

Instance Method Summary

Instance methods inherited from class Armature::Session::Store

key : String key

Constructor methods inherited from class Armature::Session::Store

new(key : String) new

Constructor Detail

def self.new(key : String, redis : Redis::Client = Redis::Client.new, expiration : Time::Span | Nil = 2.weeks, log : Log = Log.for("armature.session")) #

[View source]

Instance Method Detail

def call(context : HTTP::Server::Context) #

[View source]
def key : String #

[View source]
def load(key : String) : Hash(String, JSON::Any) #

[View source]
def save(key : String, session : Session) #

[View source]