class
Amber::Configuration::SessionConfig
- Amber::Configuration::SessionConfig
- Reference
- Object
Included Modules
- YAML::Serializable
Defined in:
amber/configuration/session_config.crConstant Summary
-
LIST_OF_VALID_STORES =
["signed_cookie", "encrypted_cookie", "adapter", "redis"]
Constructors
Instance Method Summary
-
#adapter : String
The session adapter
store: adapteruses:memoryor a registered one. -
#adapter=(adapter : String)
The session adapter
store: adapteruses:memoryor a registered one. - #expires : Int32
- #expires=(expires : Int32)
- #key : String
- #key=(key : String)
-
#max_memory_sessions : Int32
The most sessions the
memoryadapter keeps in one process. -
#max_memory_sessions=(max_memory_sessions : Int32)
The most sessions the
memoryadapter keeps in one process. -
#store : String
Where sessions live.
-
#store=(store : String)
Where sessions live.
- #store_type : Symbol
- #validate! : Nil
Constructor Detail
Instance Method Detail
The session adapter store: adapter uses: memory or a registered one.
The session adapter store: adapter uses: memory or a registered one.
The most sessions the memory adapter keeps in one process. When it is
full, the session used longest ago is dropped to make room. It is read
once, when the memory adapter is first built.
The most sessions the memory adapter keeps in one process. When it is
full, the session used longest ago is dropped to make room. It is read
once, when the memory adapter is first built.
Where sessions live. signed_cookie (the default) and encrypted_cookie
keep the session in the visitor's cookie, so the server holds nothing.
#adapter keeps it on the server through #adapter; redis is read the
same way.