DVCacheAdapter class abstract
Storage behind DV.Cache. Expiry is the adapter's responsibility: a read
of an expired key must behave exactly like a read of a missing key.
- 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
-
clear(
) → Future< void> -
delete(
String key) → Future< void> -
Removes
key. Named asDV.Cache.deleteis, so the adapter and the call an application makes say the same thing. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
purgeExpired(
) → Future< int> - Removes expired entries. Reads already ignore them; this reclaims space.
-
read(
String key) → Future< Object?> -
remove(
String key) → Future< void> -
Available on DVCacheAdapter, provided by the DVCacheAdapterRemove extension
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, Object? value, Duration? ttl) → Future< void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited