struct

HTTPSession::Storage::Entry(T)

Inherits Struct < Value < Object

Represents a session value in a Storage backend.

Constructors

new(value : T, created_at : Time = Time.utc, touched_at : Time = created_at)
Source

Instance methods

created_at
Source
touch

Updates session_touched_at to Time.utc.

Source
touched_at
Source
valid?(min : Time)

Returns true if touched_at is younger than min.

Source
value
Source