Interface for session storage backends.
This interface allows different storage implementations to be used with the session plugin, such as in-memory, file-based, or database storage.
- Implementers
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
-
clear(
) → Future< void> - Removes all session data.
-
get(
String key) → Future< T?> - Retrieves session data for the given key.
-
has(
String key) → Future< bool> - Checks if session data exists for the given key.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String key) → Future< bool> - Removes session data for the given key.
-
set(
String key, T value) → Future< void> - Stores session data for the given key.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited