MemorySessionAdapter class
Memory-based session adapter.
- Inheritance
-
- Object
- SessionAdapter
- MemorySessionAdapter
Constructors
- MemorySessionAdapter({Duration expiration = const Duration(minutes: 20)})
-
const
Properties
- expiration → Duration
-
The Duration of the session cookie expiration.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
can(
String identifier) → Future< bool> -
Can a session be expired
override
-
destroy(
String identifier) → Future< void> -
Destroys the session.
override
-
expiresAt(
String identifier) → Future< DateTime?> -
Returns the session expires at.
override
-
get(
String identifier, String key) → Future< String?> -
Returns a session value.
override
-
has(
String identifier, String key) → Future< bool> -
Returns
true
if the session contains a value for the givenkey
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onTimeout(
String identifier) → void - On timeout callback of the session manager
-
remove(
String identifier, String key) → Future< void> -
Removes a session value.
override
-
renew(
String identifier) → Future< void> -
renew the session
override
-
set(
String identifier, String key, String value) → Future< void> -
Sets a session value.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited