struct HTTPSession::Storage::Entry(T)

Overview

Represents a session value in a Storage backend.

Defined in:

storage.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(value : T, created_at : Time = Time.utc, touched_at : Time = created_at) #

[View source]

Instance Method Detail

def created_at #

[View source]
def touch #

Updates session_touched_at to Time.utc.


[View source]
def touched_at #

[View source]
def valid?(min : Time) #

Returns true if #touched_at is younger than min.


[View source]
def value #

[View source]