CachedClientAuthSuccessStorage class
Implements the cache layer for a ClientAuthSuccessStorage implementation. The get methods return is cached, so the operation can be performed with no performance concerns.
- Implemented types
Constructors
- CachedClientAuthSuccessStorage({required ClientAuthSuccessStorage delegate})
- Creates a new CachedClientAuthSuccessStorage.
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
-
clearCache(
) → Future< void> - Clear the cache for the authentication info, if any. The next call to the get method will perform the operation on the delegate.
-
get(
) → Future< AuthSuccess?> -
Get the stored authentication info, if any. To ensure good performance,
the implementation should cache the value and return it on subsequent
calls without accessing the storage again.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
AuthSuccess? data) → Future< void> -
Set the authentication info.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited