IDistributedCache class abstract
Represents a distributed cache of serialized values.
- Implementers
- Available extensions
Constructors
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
-
get(
String key) → Future< Uint8List?> -
Gets a value with the given
key. -
getString(
String key) → Future< String?> -
Available on IDistributedCache, provided by the DistributedCacheExtensions extension
Gets a string value from the cache with the givenkey. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
String key) → Future< void> - Refreshes a value in the cache based on its key, resetting its sliding expiration timeout (if any).
-
remove(
String key) → Future< void> -
Removes the value with the given
key. -
set(
String key, Uint8List value, [DistributedCacheEntryOptions? options]) → Future< void> -
Sets a value with the given
key. -
setBytes(
String key, Uint8List value) → Future< void> -
Available on IDistributedCache, provided by the DistributedCacheExtensions extension
Sets the value forkeywithout options. -
setString(
String key, String value, [DistributedCacheEntryOptions? options]) → Future< void> -
Available on IDistributedCache, provided by the DistributedCacheExtensions extension
Sets a string value in the cache with the givenkey. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited