class Athena::HTTP::Session::Storage::Factory
inherits Reference
#
Creates an AHTTP::Session::Storage with the provided configuration for the session of each request.
Included modules
Athena::HTTP::Session::Storage::FactoryInterface
Constructors#
.new(handler : AHTTP::Session::Storage::Handler::Interface, name : String = "athena_session_id", gc_max_lifetime : Int32 = 1440, gc_probability : Int32 = 1, gc_divisor : Int32 = 100, cookie_lifetime : Int32 = 0, metadata_update_threshold : Int32 = 0, clock : AHTTP::Session::Storage::MetadataBag::Clock | Nil = nil)#
See AHTTP::Session::Storage#initialize and AHTTP::Session::Storage::MetadataBag#initialize for what each argument does.
Methods#
#create_storage(request : AHTTP::Request | Nil) : AHTTP::Session::Storage::Interface#
Returns a new storage for the session of the provided request.