Store class abstract

The Store abstract class defines the interface for session storage and retrieval. Implementations handle loading, creating, and saving sessions.

Stores can optionally support:

  • Encryption: Session data is encrypted before storage for enhanced security.
  • Signing: Session data is signed to prevent tampering, ensuring data integrity.
Implementers

Constructors

Store()

Properties

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

Operators

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