NullCache class
Dummy cache implementation that doesn't do anything.
It can be used in testing or in situations when cache is required but shall be disabled.
See ICache
- Implemented types
Constructors
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.
override
-
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.
override
-
store(
String? correlationId, String key, dynamic value, int timeout) → Future -
Stores value in the cache with expiration time.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited