MemorySessionStore class
In-memory, process-local session store mirroring Laravel's array driver.
- Implemented types
Constructors
-
MemorySessionStore({required List<
SecureCookie> codecs, required SessionOptions defaultOptions, Duration? lifetime}) -
Creates an in-memory store using
codecs,defaultOptions, andlifetime.
Properties
-
codecs
→ List<
SecureCookie> -
Codecs tried when reading cookies; the first codec writes new cookies.
final
- defaultOptions → SessionOptions
-
Cloned defaults applied to sessions created by this store.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lifetime → Duration
-
Server-side lifetime used when session options omit
SessionOptions.maxAge.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
SessionRequest request, String name) → Future< Session> -
Reads a session from process-local storage or creates one when absent.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
SessionRequest request, SessionResponse response, Session session) → Future< void> -
Persists
sessionin process-local storage and sets its response cookie.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited