ICache class abstract
Interface for caches that are used to cache values to improve performance.
- Implementers
Constructors
- ICache()
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String? correlationId, String key) → Future - Removes a value from the cache by its key.
-
retrieve(
String? correlationId, String key) → Future - Retrieves cached value from the cache using its key. If value is missing in the cache or expired it returns null.
-
store(
String? correlationId, String key, dynamic value, int timeout) → Future - Stores value in the cache with expiration time.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited