MemorySessionStore class

In-memory, process-local session store mirroring Laravel's array driver.

Implemented types

Constructors

MemorySessionStore({required List<SecureCookie> codecs, required Options defaultOptions, Duration? lifetime})

Properties

codecs List<SecureCookie>
final
defaultOptions Options
final
hashCode int
The hash code for this object.
no setterinherited
lifetime Duration
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(Request request, String name) Future<Session>
Reads an existing session or creates a new one if it does not exist.
override
toString() String
A string representation of this object.
inherited
write(Request request, Response response, Session session) Future<void>
Writes the session data to the underlying storage.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited